
Public Member Functions | |
| def | __init__ (self, channel) |
| def | subscribe (self, callback, try_to_connect=None) |
| def | unsubscribe (self, callback) |
Private Attributes | |
| _channel | |
A channel to a remote host through which RPCs may be conducted. Only the "subscribe" and "unsubscribe" methods are supported for application use. This class' instance constructor and all other attributes are unsupported.
Definition at line 67 of file implementations.py.
| def grpc.beta.implementations.Channel.__init__ | ( | self, | |
| channel | |||
| ) |
Definition at line 75 of file implementations.py.
| def grpc.beta.implementations.Channel.subscribe | ( | self, | |
| callback, | |||
try_to_connect = None |
|||
| ) |
Subscribes to this Channel's connectivity.
Args:
callback: A callable to be invoked and passed an
interfaces.ChannelConnectivity identifying this Channel's connectivity.
The callable will be invoked immediately upon subscription and again for
every change to this Channel's connectivity thereafter until it is
unsubscribed.
try_to_connect: A boolean indicating whether or not this Channel should
attempt to connect if it is not already connected and ready to conduct
RPCs.
Definition at line 78 of file implementations.py.
| def grpc.beta.implementations.Channel.unsubscribe | ( | self, | |
| callback | |||
| ) |
Unsubscribes a callback from this Channel's connectivity.
Args:
callback: A callable previously registered with this Channel from having
been passed to its "subscribe" method.
Definition at line 93 of file implementations.py.
|
private |
Definition at line 76 of file implementations.py.