Annotation Type PartitionStatusChanged
-
@Retention(RUNTIME) @Target(METHOD) public @interface PartitionStatusChanged
This annotation should be used on methods that need to be notified when theAvailabilityModein use by thePartitionHandlingManagerchanges due to a change in cluster topology. This is only fired in aCacheMode.DIST_SYNC,CacheMode.DIST_ASYNC,CacheMode.REPL_SYNCorCacheMode.REPL_ASYNCconfigured cache. Methods annotated with this annotation should accept a single parameter, aPartitionStatusChangedEventotherwise aIncorrectListenerExceptionwill be thrown when registering your listener. Note that methods marked with this annotation will be fired before and after the updatedAvailabilityModeis 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