@eveble/eveble

Hierarchy

Sender

Publisher

  • Sender

  • Publisher

    Service

Index

Methods

Methods

ensureHandleability

ensureHandleability(messageType: MessageTypeMessage›, handleableTypes: MessageTypeMessage› | MessageTypeMessage›[]): boolean

Inherited from Controller.ensureHandleability

Overrides Controller.ensureHandleability

Parameters:

NameType
messageTypeMessageTypeMessage
handleableTypesMessageTypeMessage› | MessageTypeMessage›[]

Returns: boolean


getHandleableTypes

getHandleableTypes(): MessageTypeMessage›[]

Inherited from Controller.getHandleableTypes

Overrides Controller.getHandleableTypes

Returns: MessageTypeMessage›[]


getHandled

getHandled(messageType: MessageTypeMessage›): MessageTypeMessage›[]

Inherited from Controller.getHandled

Overrides Controller.getHandled

Parameters:

NameType
messageTypeMessageTypeMessage

Returns: MessageTypeMessage›[]


getHandledTypes

getHandledTypes(): MessageTypeMessage›[]

Inherited from Controller.getHandledTypes

Overrides Controller.getHandledTypes

Returns: MessageTypeMessage›[]


getHandler

getHandler(messageType: MessageTypeMessage›): Handler | Handler[] | undefined

Inherited from Controller.getHandler

Overrides Controller.getHandler

Parameters:

NameType
messageTypeMessageTypeMessage

Returns: Handler | Handler[] | undefined


getHandlerOrThrow

getHandlerOrThrow(messageType: MessageTypeMessage›): Handler | Handler[]

Inherited from Controller.getHandlerOrThrow

Overrides Controller.getHandlerOrThrow

Parameters:

NameType
messageTypeMessageTypeMessage

Returns: Handler | Handler[]


getHandlers

getHandlers(): Map‹MessageTypeMessage›, Handler | Handler[]›

Inherited from Controller.getHandlers

Overrides Controller.getHandlers

Returns: Map‹MessageTypeMessage›, Handler | Handler[]›


handle

handle(message: Message, execution?: Execution): Promise‹any›

Inherited from Controller.handle

Overrides Controller.handle

Parameters:

NameType
messageMessage
execution?Execution

Returns: Promise‹any›


handles

handles(): Map‹MessageTypeCommand›, Handler

Inherited from Controller.handles

Overrides Controller.handles

Returns: Map‹MessageTypeCommand›, Handler


hasHandler

hasHandler(messageType: MessageTypeMessage›): boolean

Inherited from Controller.hasHandler

Overrides Controller.hasHandler

Parameters:

NameType
messageTypeMessageTypeMessage

Returns: boolean


initialize

initialize(): void

Inherited from Controller.initialize

Overrides Controller.initialize

Returns: void


isHandleabe

isHandleabe(messageType: MessageTypeMessage›): boolean

Inherited from Controller.isHandleabe

Overrides Controller.isHandleabe

Parameters:

NameType
messageTypeMessageTypeMessage

Returns: boolean


overrideHandler

overrideHandler(messageType: MessageTypeMessage›, handler: Handler): void

Inherited from Controller.overrideHandler

Overrides Controller.overrideHandler

Parameters:

NameType
messageTypeMessageTypeMessage
handlerHandler

Returns: void


publish

publish(event: Event): Promise‹void›

Inherited from Publisher.publish

Overrides void

Parameters:

NameType
eventEvent

Returns: Promise‹void›


registerHandler

registerHandler(messageType: MessageTypeMessage›, handler: Handler, shouldOverride?: boolean): void

Inherited from Controller.registerHandler

Overrides Controller.registerHandler

Parameters:

NameType
messageTypeMessageTypeMessage
handlerHandler
shouldOverride?boolean

Returns: void


removeHandler

removeHandler(messageType: MessageTypeMessage›): void

Inherited from Controller.removeHandler

Overrides Controller.removeHandler

Parameters:

NameType
messageTypeMessageTypeMessage

Returns: void


send

send(command: Command): Promise‹any›

Inherited from Sender.send

Overrides void

Parameters:

NameType
commandCommand

Returns: Promise‹any›


setHandleableTypes

setHandleableTypes(handleableTypes: MessageTypeMessage› | MessageTypeMessage›[]): void

Inherited from Controller.setHandleableTypes

Overrides Controller.setHandleableTypes

Parameters:

NameType
handleableTypesMessageTypeMessage› | MessageTypeMessage›[]

Returns: void


subscribeTo

subscribeTo(event: any, handler: Handler, shouldOverride?: boolean): void

Inherited from Publisher.subscribeTo

Overrides void

Parameters:

NameType
eventany
handlerHandler
shouldOverride?boolean

Returns: void


subscribes

subscribes(): Map‹MessageTypeEvent›, Handler

Inherited from Controller.subscribes

Overrides Controller.subscribes

Returns: Map‹MessageTypeEvent›, Handler