class documentation
class BaseServiceCollectionHandler(AbstractHandler, ABC):
Known subclasses: nexusrpc.handler.Handler
Constructor: BaseServiceCollectionHandler(user_service_handlers, executor)
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.
| 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:
| Method | cancel |
Handle a Cancel Operation request. |
| Method | start |
Undocumented |
def __init__(self, user_service_handlers:
Sequence[ Any], executor: concurrent.futures.Executor | None = None):
¶
overridden in
nexusrpc.handler.HandlerInitialize 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 _register_service_handlers(self, user_service_handlers:
Sequence[ Any]) -> Mapping[ str, ServiceHandler]:
¶
Undocumented