@Retention(value=RUNTIME) @Target(value=TYPE) public @interface Interceptor
EventInterceptor implementations. The annotation allows the specification of an identifier, event types and an order. These are used to restrict the events an EventInterceptor subscribes to.
When used in combination with the cache configuration the annotation members identifier() and order() can be overridden by the corresponding XML elements.
| Modifier and Type | Optional Element and Description |
|---|---|
CacheLifecycleEvent.Type[] |
cacheLifecycleEvents
This element specifies all types of
CacheLifecycleEvent.Types the interceptor would like to be invoked on. |
EntryEvent.Type[] |
entryEvents
This element specifies all types of
EntryEvent.Types the interceptor would like to be invoked on. |
EntryProcessorEvent.Type[] |
entryProcessorEvents
This element specifies all types of
EntryProcessorEvent.Types the interceptor would like to be invoked on. |
FederatedChangeEvent.Type[] |
federatedChangeEvents
This element specifies all types of
FederatedChangeEvent.Types the interceptor would like to be invoked on. |
FederatedConnectionEvent.Type[] |
federatedConnectionEvents
This element specifies all types of
FederatedConnectionEvent.Types the interceptor would like to be invoked on. |
FederatedPartitionEvent.Type[] |
federatedPartitionEvents
This element specifies all types of
FederatedPartitionEvent.Types the interceptor would like to be invoked on. |
String |
identifier
A unique identifier for the interceptor.
|
Interceptor.Order |
order
Iff a value of
Interceptor.Order.HIGH is provided this interceptor will request to be the first in the chain of interceptors. |
TransactionEvent.Type[] |
transactionEvents
This element specifies all types of
TransactionEvent.Types the interceptor would like to be invoked on. |
TransferEvent.Type[] |
transferEvents
This element specifies all types of
TransferEvent.Types the interceptor would like to be invoked on. |
UnsolicitedCommitEvent.Type[] |
unsolicitedEvents
This element specifies all types of
UnsolicitedCommitEvent.Types the interceptor would like to be invoked on. |
public abstract String identifier
public abstract EntryEvent.Type[] entryEvents
EntryEvent.Types the interceptor would like to be invoked on.EntryEvent.Types the EventInterceptor would like to receive notifications onpublic abstract EntryProcessorEvent.Type[] entryProcessorEvents
EntryProcessorEvent.Types the interceptor would like to be invoked on.EntryProcessorEvent.Types the EventInterceptor would like to receive notifications onpublic abstract FederatedChangeEvent.Type[] federatedChangeEvents
FederatedChangeEvent.Types the interceptor would like to be invoked on.FederatedChangeEvent.Types the EventInterceptor would like to receive notifications onpublic abstract FederatedConnectionEvent.Type[] federatedConnectionEvents
FederatedConnectionEvent.Types the interceptor would like to be invoked on.FederatedConnectionEvent.Types the EventInterceptor would like to receive notifications onpublic abstract FederatedPartitionEvent.Type[] federatedPartitionEvents
FederatedPartitionEvent.Types the interceptor would like to be invoked on.FederatedPartitionEvent.Types the EventInterceptor would like to receive notifications onpublic abstract TransferEvent.Type[] transferEvents
TransferEvent.Types the interceptor would like to be invoked on.TransferEvent.Types the EventInterceptor would like to receive notifications onpublic abstract TransactionEvent.Type[] transactionEvents
TransactionEvent.Types the interceptor would like to be invoked on.TransactionEvent.Types the EventInterceptor would like to receive notifications onpublic abstract UnsolicitedCommitEvent.Type[] unsolicitedEvents
UnsolicitedCommitEvent.Types the interceptor would like to be invoked on.UnsolicitedCommitEvent.Types the EventInterceptor would like to receive notifications onpublic abstract CacheLifecycleEvent.Type[] cacheLifecycleEvents
CacheLifecycleEvent.Types the interceptor would like to be invoked on.CacheLifecycleEvent.Types the EventInterceptor would like to receive notifications onpublic abstract Interceptor.Order order
Interceptor.Order.HIGH is provided this interceptor will request to be the first in the chain of interceptors.EventInterceptor should be first (Interceptor.Order.HIGH) in the chain of EventInterceptors