Annotation Type TopologyChanged
-
@Retention(RUNTIME) @Target(METHOD) public @interface TopologyChanged
This annotation should be used on methods that need to be notified when theConsistentHash
implementation in use by theDistributionManager
changes due to a change in cluster topology. This is only fired in aCacheMode.DIST_SYNC
orCacheMode.DIST_ASYNC
configured cache. Methods annotated with this annotation should accept a single parameter, aTopologyChangedEvent
otherwise aIncorrectListenerException
will be thrown when registering your listener. Note that methods marked with this annotation will be fired before and after the updatedConsistentHash
is 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