Skip to main content

Enumeration: ServiceEventsNames


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:36open in new window


CommandUnhandledError

• CommandUnhandledError = "service-unhandled-command-error"

emitted when a command throws an error other than a HandledError

Defined in

core/types/ServiceEvents.ts:42open in new window


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:21open in new window


ServiceDrain

• ServiceDrain = "service-drain"

emitted when the service is going to be stopped

Defined in

core/types/ServiceEvents.ts:24open in new window


ServiceStarted

• ServiceStarted = "service-started"

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

Defined in

core/types/ServiceEvents.ts:13open in new window


ServiceStopped

• ServiceStopped = "service-stopped"

emitted when the service has been stopped

Defined in

core/types/ServiceEvents.ts:27open in new window


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:30open in new window


SubscriptionHandledError

• SubscriptionHandledError = "service-handled-subscription-error"

emitted when a subscription throws a HandledError

Defined in

core/types/ServiceEvents.ts:33open in new window


SubscriptionUnhandledError

• SubscriptionUnhandledError = "service-unhandled-subscription-error"

emitted when a subscription throws an error other than a HandledError

Defined in

core/types/ServiceEvents.ts:39open in new window

Last update:
Contributors: Sebastian Wessel