Classes | Functions
grpc.aio._server Namespace Reference

Classes

class  Server
 

Functions

def _augment_channel_arguments (ChannelArgumentType base_options, Optional[grpc.Compression] compression)
 
def server (Optional[Executor] migration_thread_pool=None, Optional[Sequence[grpc.GenericRpcHandler]] handlers=None, Optional[Sequence[Any]] interceptors=None, Optional[ChannelArgumentType] options=None, Optional[int] maximum_concurrent_rpcs=None, Optional[grpc.Compression] compression=None)
 

Function Documentation

◆ _augment_channel_arguments()

def grpc.aio._server._augment_channel_arguments ( ChannelArgumentType  base_options,
Optional[grpc.Compression compression 
)
private

Definition at line 29 of file grpc/aio/_server.py.

◆ server()

def grpc.aio._server.server ( Optional[Executor]   migration_thread_pool = None,
Optional[Sequence[grpc.GenericRpcHandler]]   handlers = None,
Optional[Sequence[Any]]   interceptors = None,
Optional[ChannelArgumentType]   options = None,
Optional[int]   maximum_concurrent_rpcs = None,
Optional[grpc.Compression]   compression = None 
)
Creates a Server with which RPCs can be serviced.

Args:
  migration_thread_pool: A futures.ThreadPoolExecutor to be used by the
    Server to execute non-AsyncIO RPC handlers for migration purpose.
  handlers: An optional list of GenericRpcHandlers used for executing RPCs.
    More handlers may be added by calling add_generic_rpc_handlers any time
    before the server is started.
  interceptors: An optional list of ServerInterceptor objects that observe
    and optionally manipulate the incoming RPCs before handing them over to
    handlers. The interceptors are given control in the order they are
    specified. This is an EXPERIMENTAL API.
  options: An optional list of key-value pairs (:term:`channel_arguments` in gRPC runtime)
    to configure the channel.
  maximum_concurrent_rpcs: The maximum number of concurrent RPCs this server
    will service before returning RESOURCE_EXHAUSTED status, or None to
    indicate no limit.
  compression: An element of grpc.compression, e.g.
    grpc.compression.Gzip. This compression algorithm will be used for the
    lifetime of the server unless overridden by set_compression. This is an
    EXPERIMENTAL option.

Returns:
  A Server object.

Definition at line 176 of file grpc/aio/_server.py.



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