nexusrpc.handler._core.BaseServiceCollectionHandler
class documentation
A Nexus handler, managing a collection of Nexus service handlers.
Operation requests are delegated to a ServiceHandler based on the service
name in the operation context.
Warning
This API is experimental and may change in the future.
| Method | __init__ |
Initialize a Handler instance from user service handler instances. |
| Instance Variable | executor |
Undocumented |
| Instance Variable | service |
Undocumented |
| Method | _get |
Return a service handler, given the service name. |
| Method | _register |
Undocumented |
Inherited from AbstractHandler:
def __init__(self, user_service_handlers: Sequence[, executor: concurrent.futures.Executor | None = None):
¶
Initialize a Handler instance from user service handler instances.
The user service handler instances must have been decorated with the
@nexusrpc.handler.service_handler decorator.
| Parameters | |
userSequence[ | A sequence of user service handlers. |
executor:concurrent.futures.Executor | None | A concurrent.futures.Executor in which to run non-async def operation handlers. |
def _get_service_handler(self, service_name: str) -> ServiceHandler:
¶
Return a service handler, given the service name.
def _register_service_handlers(self, user_service_handlers: Sequence[) -> Mapping[:
¶