Skip to content

PURISTA API / Modules / @purista/core / ServiceEventsNames

Enumeration: ServiceEventsNames

@purista/core.ServiceEventsNames

Events which can be emitted by a service. Internal events are prefixed with service-

Table of contents

Events

Events

CommandHandledError

CommandHandledError = "service-handled-command-error"

emitted when a command throws a HandledError

Defined in

core/types/ServiceEvents.ts:36


CommandUnhandledError

CommandUnhandledError = "service-unhandled-command-error"

emitted when a command throws an error other than a HandledError

Defined in

core/types/ServiceEvents.ts:42


ServiceAvailable

ServiceAvailable = "service-available"

emitted when the service is fully initialized and ready Should be emitted by custom service class. It is not emitted by default

Defined in

core/types/ServiceEvents.ts:21


ServiceDrain

ServiceDrain = "service-drain"

emitted when the service is going to be stopped

Defined in

core/types/ServiceEvents.ts:24


ServiceStarted

ServiceStarted = "service-started"

emitted when the service is started, but not fully initialized and not ready yet

Defined in

core/types/ServiceEvents.ts:13


ServiceStopped

ServiceStopped = "service-stopped"

emitted when the service has been stopped

Defined in

core/types/ServiceEvents.ts:27


ServiceUnavailable

ServiceUnavailable = "service-not-available"

emitted when the service is not available (for example database connection could not be established)

Defined in

core/types/ServiceEvents.ts:30


SubscriptionHandledError

SubscriptionHandledError = "service-handled-subscription-error"

emitted when a subscription throws a HandledError

Defined in

core/types/ServiceEvents.ts:33


SubscriptionUnhandledError

SubscriptionUnhandledError = "service-unhandled-subscription-error"

emitted when a subscription throws an error other than a HandledError

Defined in

core/types/ServiceEvents.ts:39