Axinom Mosaic Libraries
    Preparing search index...

    A builder class that builds various rascal config parts for a specific messageType. Multiple builders are used by setupMessagingBroker middleware to generate a complete rascal messaging configuration object.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    buildMessageHandler?: (broker: BrokerProxy) => MessageHandler<unknown>

    There should not be any need to explicitly call this. This should only be used by setupMessagingBroker or any custom logic that is meant to setup broker and rascal subscriptions, if setupMessagingBroker is not used for some reason.

    currentServiceId: string
    destinationServiceId: string
    subscribedEventServiceId: string | undefined

    Service ID of an event to which the service subscripbes to. Used by the cachePublicSigningKeys to request only relevant public keys from the Key Service.

    Only set if subscribeForEvent is called on the builder.

    Methods

    • There should not be any need to explicitly call this. This should only be used by setupMessagingBroker or any custom logic that is meant to generate broker config out of builders, if setupMessagingBroker is not used for some reason.

      Parameters

      • cfg: BrokerConfig

      Returns BrokerConfig

    • Returns an object with default arguments which queues are created with.

      Parameters

      • serviceId: string

        id of the service to which queue will belong to. Used to define dead letter routing key.

      Returns Record<string, string>