Annotation Interface OnPrimaryNodeStateChange
@Documented
@Target(METHOD)
@Retention(RUNTIME)
@Inherited
public @interface OnPrimaryNodeStateChange
Marker annotation that a component can use to indicate that a method should be called whenever the state of the Primary Node in a cluster has changed.
Methods with this annotation should take either no arguments or one argument of type
PrimaryNodeState
. The PrimaryNodeState
provides context about what changed
so that the component can take appropriate action.