@eveble/eveble

Hierarchy

Sender

  • Sender

    CommandBus

Implemented by

Index

Methods

Methods

ensureHandleability

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

Inherited from Controller.ensureHandleability

Overrides void

Parameters:

NameType
messageTypeMessageTypeMessage
handleableTypesMessageTypeMessage› | MessageTypeMessage›[]

Returns: boolean


getHandleableTypes

getHandleableTypes(): MessageTypeMessage›[]

Inherited from Controller.getHandleableTypes

Overrides void

Returns: MessageTypeMessage›[]


getHandled

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

Inherited from Controller.getHandled

Overrides void

Parameters:

NameType
messageTypeMessageTypeMessage

Returns: MessageTypeMessage›[]


getHandledTypes

getHandledTypes(): MessageTypeMessage›[]

Inherited from Controller.getHandledTypes

Overrides void

Returns: MessageTypeMessage›[]


getHandledTypesNames

getHandledTypesNames(): TypeName[]

Returns: TypeName[]

getHandledTypesNames(): TypeName[]

Returns: TypeName[]


getHandler

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

Inherited from Controller.getHandler

Overrides void

Parameters:

NameType
messageTypeMessageTypeMessage

Returns: Handler | Handler[] | undefined


getHandlerOrThrow

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

Inherited from Controller.getHandlerOrThrow

Overrides void

Parameters:

NameType
messageTypeMessageTypeMessage

Returns: Handler | Handler[]


getHandlers

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

Inherited from Controller.getHandlers

Overrides void

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


handle

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

Inherited from Controller.handle

Overrides void

Parameters:

NameType
messageMessage
execution?Execution

Returns: Promise‹any›


handles

handles(): Map‹MessageTypeCommand›, Handler

Inherited from Controller.handles

Overrides void

Returns: Map‹MessageTypeCommand›, Handler


hasHandler

hasHandler(messageType: MessageTypeMessage›): boolean

Inherited from Controller.hasHandler

Overrides void

Parameters:

NameType
messageTypeMessageTypeMessage

Returns: boolean


initialize

initialize(): void

Inherited from Controller.initialize

Overrides void

Returns: void


isHandleabe

isHandleabe(messageType: MessageTypeMessage›): boolean

Inherited from Controller.isHandleabe

Overrides void

Parameters:

NameType
messageTypeMessageTypeMessage

Returns: boolean


onSend

onSend(id: string, hook: Hook, shouldOverride?: boolean): void

Parameters:

NameType
idstring
hookHook
shouldOverride?boolean

Returns: void

onSend(id: string, hook: Hook, shouldOverride?: boolean): void

Parameters:

NameType
idstring
hookHook
shouldOverride?boolean

Returns: void


overrideHandler

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

Inherited from Controller.overrideHandler

Overrides void

Parameters:

NameType
messageTypeMessageTypeMessage
handlerHandler

Returns: void


registerHandler

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

Inherited from Controller.registerHandler

Overrides void

Parameters:

NameType
messageTypeMessageTypeMessage
handlerHandler
shouldOverride?boolean

Returns: void


removeHandler

removeHandler(messageType: MessageTypeMessage›): void

Inherited from Controller.removeHandler

Overrides void

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 void

Parameters:

NameType
handleableTypesMessageTypeMessage› | MessageTypeMessage›[]

Returns: void


subscribes

subscribes(): Map‹MessageTypeEvent›, Handler

Inherited from Controller.subscribes

Overrides void

Returns: Map‹MessageTypeEvent›, Handler