@Documented @Retention(value=RUNTIME) @Target(value=METHOD) public @interface OnActive
OnActiveis a method annotation called as the last startup lifecycle method, after all replay methods have been called. Applications that need to distinguish between normal methods and replay methods can use @OnActive to set the service into its active state.
If reading the service state from storage is an async operation or a
multistep operation, then instead of returning true from this method, the
service provider would add a
Result.ok(true) when the service was done reading its