Annotation Type TopologyChanged
-
@Retention(RUNTIME) @Target(METHOD) public @interface TopologyChangedThis annotation should be used on methods that need to be notified when theConsistentHashimplementation in use by theDistributionManagerchanges due to a change in cluster topology. This is only fired in aCacheMode.DIST_SYNCorCacheMode.DIST_ASYNCconfigured cache. Methods annotated with this annotation should accept a single parameter, aTopologyChangedEventotherwise aIncorrectListenerExceptionwill be thrown when registering your listener. Note that methods marked with this annotation will be fired before and after the updatedConsistentHashis installed, i.e., your method will be called twice, withEvent.isPre()being set to true as well as false.- Since:
- 5.0
- Author:
- Manik Surtani
- See Also:
Listener