Public Member Functions | Private Attributes | List of all members
grpc.beta.implementations.Channel Class Reference
Inheritance diagram for grpc.beta.implementations.Channel:
Inheritance graph
[legend]

Public Member Functions

def __init__ (self, channel)
 
def subscribe (self, callback, try_to_connect=None)
 
def unsubscribe (self, callback)
 

Private Attributes

 _channel
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ __init__()

def grpc.beta.implementations.Channel.__init__ (   self,
  channel 
)

Definition at line 75 of file implementations.py.

Member Function Documentation

◆ subscribe()

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.

◆ unsubscribe()

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.

Member Data Documentation

◆ _channel

grpc.beta.implementations.Channel._channel
private

Definition at line 76 of file implementations.py.


The documentation for this class was generated from the following file:


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:32