Skip to content

Instantly share code, notes, and snippets.

@wburns
Last active August 29, 2015 13:56
Listener Annotation
/**
* Defines whether the annotated listener is clustered or not.
* Important: Clustered listener can only be notified for @CacheEntryRemoved, @CacheEntryCreated and
* @CacheEntryModified events.
*/
boolean clustered() default false;
/**
* If set to true then the entire existing state within the cluster is
* evaluated. For existing matches of the value, an @CacheEntryCreated event is triggered against the listener
* during registration. If this is a local listener only the current node state is evaluated. Only in a cluster
* listener is the entire state sent back.
* <p>
* <b>Currently this is not supported!</b>
**/
boolean includeCurrentState() default false;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment