@FunctionalInterface
public ServiceLifecycleObserver
Specifies that given annotationclass CordaService
is interested to know about important milestones of Corda Node lifecycle and potentially react to them.
Subscription can be performed using net.corda.core.node.AppServiceHub.register
method from a constructor of annotationclass CordaService
.
void onServiceLifecycleEvent(@NotNull ServiceLifecycleEvent event)
A handler for enum ServiceLifecycleEvent
s.
Default implementation does nothing.
enum ServiceLifecycleEvent