Class BasePublisher<Evt>Abstract

Type Parameters

  • Evt extends Respondable

Hierarchy

Implements

Constructors

Properties

_distributor: Distributor<Evt>
_responseMap: AsyncMap<ResponseWrapper<unknown>>
_uuid: string
publisherOptions: IPublisherMeta

Accessors

Methods

  • Handle publishing the response outbound

    Parameters

    • routingKey: string
    • responseJSON: string

    Returns Promise<void>

  • Listen to the publisher asynchronously without interacting with publisher state

    Parameters

    • handlerFn: ((event: Evt) => void)
        • (event: Evt): void
        • Parameters

          • event: Evt

          Returns void

    Returns string

  • Subscribe to the publisher as a worker.

    Parameters

    • handlerFn: ((event: Evt) => any)
        • (event: Evt): any
        • Parameters

          • event: Evt

          Returns any

    Returns string

Generated using TypeDoc