PURISTA API / @purista/core / ServiceEventsNames
Enumeration: ServiceEventsNames
Defined in: packages/core/src/core/types/ServiceEvents.ts:11
Events which can be emitted by a service. Internal events are prefixed with service-
Events
CommandHandledError
CommandHandledError:
"service-handled-command-error"
Defined in: packages/core/src/core/types/ServiceEvents.ts:36
emitted when a command throws a HandledError
CommandUnhandledError
CommandUnhandledError:
"service-unhandled-command-error"
Defined in: packages/core/src/core/types/ServiceEvents.ts:42
emitted when a command throws an error other than a HandledError
ServiceAvailable
ServiceAvailable:
"service-available"
Defined in: packages/core/src/core/types/ServiceEvents.ts:21
emitted when the service is fully initialized and ready Should be emitted by custom service class. It is not emitted by default
ServiceDrain
ServiceDrain:
"service-drain"
Defined in: packages/core/src/core/types/ServiceEvents.ts:24
emitted when the service is going to be stopped
ServiceStarted
ServiceStarted:
"service-started"
Defined in: packages/core/src/core/types/ServiceEvents.ts:13
emitted when the service is started, but not fully initialized and not ready yet
ServiceStopped
ServiceStopped:
"service-stopped"
Defined in: packages/core/src/core/types/ServiceEvents.ts:27
emitted when the service has been stopped
ServiceUnavailable
ServiceUnavailable:
"service-not-available"
Defined in: packages/core/src/core/types/ServiceEvents.ts:30
emitted when the service is not available (for example database connection could not be established)
SubscriptionHandledError
SubscriptionHandledError:
"service-handled-subscription-error"
Defined in: packages/core/src/core/types/ServiceEvents.ts:33
emitted when a subscription throws a HandledError
SubscriptionUnhandledError
SubscriptionUnhandledError:
"service-unhandled-subscription-error"
Defined in: packages/core/src/core/types/ServiceEvents.ts:39
emitted when a subscription throws an error other than a HandledError