@eveble/eveble

Hierarchy

Implemented by

Index

Methods

Methods

ensureHandleability

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

Parameters:

NameType
messageTypeMessageTypeMessage
handleableTypesMessageTypeMessage› | MessageTypeMessage›[]

Returns: boolean

ensureHandleability(messageType: MessageType‹Message›, handleableTypes: MessageType‹Message› | MessageType‹Message›[]): boolean

Parameters:

NameType
messageTypeMessageType‹Message›
handleableTypesMessageType‹Message› | MessageType‹Message›[]

Returns: boolean


getHandleableTypes

getHandleableTypes(): MessageTypeMessage›[]

Returns: MessageTypeMessage›[]

getHandleableTypes(): MessageType‹Message›[]

Returns: MessageType‹Message›[]


getHandled

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

Parameters:

NameType
messageTypeMessageTypeMessage

Returns: MessageTypeMessage›[]

getHandled(messageType: MessageType‹Message›): MessageType‹Message›[]

Parameters:

NameType
messageTypeMessageType‹Message›

Returns: MessageType‹Message›[]


getHandledTypes

getHandledTypes(): MessageTypeMessage›[]

Returns: MessageTypeMessage›[]

getHandledTypes(): MessageType‹Message›[]

Returns: MessageType‹Message›[]


getHandler

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

Parameters:

NameType
messageTypeMessageTypeMessage

Returns: Handler | Handler[] | undefined

getHandler(messageType: MessageType‹Message›): Handler | Handler[] | undefined

Parameters:

NameType
messageTypeMessageType‹Message›

Returns: Handler | Handler[] | undefined


getHandlerOrThrow

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

Parameters:

NameType
messageTypeMessageTypeMessage

Returns: Handler | Handler[]

getHandlerOrThrow(messageType: MessageType‹Message›): Handler | Handler[]

Parameters:

NameType
messageTypeMessageType‹Message›

Returns: Handler | Handler[]


getHandlers

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

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

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

Returns: Map‹MessageType‹Message›, Handler | Handler[]›


handle

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

Parameters:

NameType
messageMessage
execution?Execution

Returns: Promise‹any›

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

Parameters:

NameType
messageMessage
execution?Execution

Returns: Promise‹any›


handles

handles(): Map‹MessageTypeCommand›, Handler

Returns: Map‹MessageTypeCommand›, Handler

handles(): Map‹MessageType‹Command›, Handler

Returns: Map‹MessageType‹Command›, Handler


hasHandler

hasHandler(messageType: MessageTypeMessage›): boolean

Parameters:

NameType
messageTypeMessageTypeMessage

Returns: boolean

hasHandler(messageType: MessageType‹Message›): boolean

Parameters:

NameType
messageTypeMessageType‹Message›

Returns: boolean


initialize

initialize(): void

Returns: void

initialize(): void

Returns: void


isHandleabe

isHandleabe(messageType: MessageTypeMessage›): boolean

Parameters:

NameType
messageTypeMessageTypeMessage

Returns: boolean

isHandleabe(messageType: MessageType‹Message›): boolean

Parameters:

NameType
messageTypeMessageType‹Message›

Returns: boolean


overrideHandler

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

Parameters:

NameType
messageTypeMessageTypeMessage
handlerHandler

Returns: void

overrideHandler(messageType: MessageType‹Message›, handler: Handler): void

Parameters:

NameType
messageTypeMessageType‹Message›
handlerHandler

Returns: void


registerHandler

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

Parameters:

NameType
messageTypeMessageTypeMessage
handlerHandler
shouldOverride?boolean

Returns: void

registerHandler(messageType: MessageType‹Message›, handler: Handler, shouldOverride?: boolean): void

Parameters:

NameType
messageTypeMessageType‹Message›
handlerHandler
shouldOverride?boolean

Returns: void


removeHandler

removeHandler(messageType: MessageTypeMessage›): void

Parameters:

NameType
messageTypeMessageTypeMessage

Returns: void

removeHandler(messageType: MessageType‹Message›): void

Parameters:

NameType
messageTypeMessageType‹Message›

Returns: void


setHandleableTypes

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

Parameters:

NameType
handleableTypesMessageTypeMessage› | MessageTypeMessage›[]

Returns: void

setHandleableTypes(handleableTypes: MessageType‹Message› | MessageType‹Message›[]): void

Parameters:

NameType
handleableTypesMessageType‹Message› | MessageType‹Message›[]

Returns: void


subscribes

subscribes(): Map‹MessageTypeEvent›, Handler

Returns: Map‹MessageTypeEvent›, Handler

subscribes(): Map‹MessageType‹Event›, Handler

Returns: Map‹MessageType‹Event›, Handler