|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Retention(value=RUNTIME) @Target(value=METHOD) public @interface DataRehashed
This annotation should be used on methods that need to be notified when a rehash starts or ends. This is only fired
in a Configuration.CacheMode#DIST_SYNC
or Configuration.CacheMode#DIST_ASYNC
configured cache.
DataRehashedEvent
otherwise a
IncorrectListenerException
will be thrown when registering your listener.
Note that methods marked with this annotation will be fired before and after rehashing takes place,
i.e., your method will be called twice, with Event.isPre()
being set to true as well as false.
Listener
|
--> | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |