Annotation Type PartitionStatusChanged
-
@Retention(RUNTIME) @Target(METHOD) public @interface PartitionStatusChanged
This annotation should be used on methods that need to be notified when theAvailabilityMode
in use by thePartitionHandlingManager
changes due to a change in cluster topology. This is only fired in aCacheMode.DIST_SYNC
,CacheMode.DIST_ASYNC
,CacheMode.REPL_SYNC
orCacheMode.REPL_ASYNC
configured cache. Methods annotated with this annotation should accept a single parameter, aPartitionStatusChangedEvent
otherwise aIncorrectListenerException
will be thrown when registering your listener. Note that methods marked with this annotation will be fired before and after the updatedAvailabilityMode
is updated, i.e., your method will be called twice, withEvent.isPre()
being set to true as well as false.- Since:
- 7.0
- Author:
- William Burns
- See Also:
Listener