Ability to listen to actors lifecycles in a plugin.
Motivation:
Plugins give an option to extend system with some logic. Problem is sometimes you need to hook into actor's creation/deletion, which currently is impossible. As an example—for actor recovery we need to restore state when it's created and ready for cluster system, which can be done by some potential EventSourcingJournal.
By adding simple hook protocol we can enable this.
Modifications:
PluginActorLifecycleHook protocol
additional actorLifecycleHooks in plugins settings
inside ClusterSystem's actorReady and resignID are called for each hookable plugin added to the system.
Ability to listen to actors lifecycles in a plugin.
Motivation:
Plugins give an option to extend system with some logic. Problem is sometimes you need to hook into actor's creation/deletion, which currently is impossible. As an example—for actor recovery we need to restore state when it's created and ready for cluster system, which can be done by some potential
EventSourcingJournal
.By adding simple hook protocol we can enable this.
Modifications:
PluginActorLifecycleHook
protocolactorLifecycleHooks
in plugins settingsactorReady
andresignID
are called for each hookable plugin added to the system.