Skip to content

MessageDispatcher

Sub classes

Name Children Inherits
DefaultMessageDispatcher
aclientp.task.dispatcher
Background worker that consumes RPC tasks from a broker.

    Base classes

    Name Children Inherits
    Protocol
    typing
    Base class for protocol classes.

    ⋔ Inheritance diagram

    graph TD
      95970860481568["dispatcher.MessageDispatcher"]
      95970836711072["typing.Protocol"]
      95970835676112["typing.Generic"]
      125067848591872["builtins.object"]
      95970836711072 --> 95970860481568
      95970835676112 --> 95970836711072
      125067848591872 --> 95970835676112

    🛈 DocStrings

    Bases: Protocol

    Protocol for message dispatchers.

    Source code in src/aclientp/task/dispatcher.py
    class MessageDispatcher(Protocol):
        """Protocol for message dispatchers."""
    
        def __init__(
            self,
            *,
            queue: MessageQueue,
            supervisor: TaskSupervisor,
            store: MessageStateStore,
            request_runner: RequestRunner,
            notification_runner: NotificationRunner,
        ) -> None: ...
    
        def start(self) -> None: ...
    
        async def stop(self) -> None: ...
    

    :fa-brands-github: Show source on GitHub