Annotation Interface Interceptor
Interceptor is an annotation that can be applied to
EventInterceptor implementations.
The annotation allows the specification of an identifier and
an order.
When used in combination with the cache configuration the annotation
members identifier() and order() can be overridden by
the corresponding XML elements.
- Since:
- Coherence 12.1.2
- Author:
- hr 2011.10.07
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThis enum provides an indication of whether theEventInterceptorshould request to be first in the chain ofEventInterceptors, hence have a HIGH priority. -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionDeprecated.Deprecated.useEntryEventsannotation insteadDeprecated.useEntryProcessorEventsannotation insteadDeprecated.useFederatedChangeEventsannotation insteadDeprecated.useFederatedConnectionEventsannotation insteadDeprecated.useFederatedPartitionEventsannotation insteadA unique identifier for the interceptor.Iff a value ofInterceptor.Order.HIGHis provided this interceptor will request to be the first in the chain of interceptors.Deprecated.useTransactionEventsannotation insteadDeprecated.useTransferEventsannotation insteadDeprecated.useUnsolicitedCommitEventsannotation instead
-
Element Details
-
identifier
String identifierA unique identifier for the interceptor.- Returns:
- unique identifier for the interceptor
- Default:
""
-
entryEvents
Deprecated.useEntryEventsannotation insteadThis element specifies all types ofEntryEvent.Types the interceptor would like to be invoked on.- Returns:
- all
EntryEvent.Types theEventInterceptorwould like to receive notifications on
- Default:
{}
-
entryProcessorEvents
Deprecated.useEntryProcessorEventsannotation insteadThis element specifies all types ofEntryProcessorEvent.Types the interceptor would like to be invoked on.- Returns:
- all
EntryProcessorEvent.Types theEventInterceptorwould like to receive notifications on
- Default:
{}
-
federatedChangeEvents
Deprecated.useFederatedChangeEventsannotation insteadThis element specifies all types ofFederatedChangeEvent.Types the interceptor would like to be invoked on.- Returns:
- all
FederatedChangeEvent.Types theEventInterceptorwould like to receive notifications on
- Default:
{}
-
federatedConnectionEvents
Deprecated.useFederatedConnectionEventsannotation insteadThis element specifies all types ofFederatedConnectionEvent.Types the interceptor would like to be invoked on.- Returns:
- all
FederatedConnectionEvent.Types theEventInterceptorwould like to receive notifications on
- Default:
{}
-
federatedPartitionEvents
Deprecated.useFederatedPartitionEventsannotation insteadThis element specifies all types ofFederatedPartitionEvent.Types the interceptor would like to be invoked on.- Returns:
- all
FederatedPartitionEvent.Types theEventInterceptorwould like to receive notifications on
- Default:
{}
-
transferEvents
Deprecated.useTransferEventsannotation insteadThis element specifies all types ofTransferEvent.Types the interceptor would like to be invoked on.- Returns:
- all
TransferEvent.Types theEventInterceptorwould like to receive notifications on
- Default:
{}
-
transactionEvents
Deprecated.useTransactionEventsannotation insteadThis element specifies all types ofTransactionEvent.Types the interceptor would like to be invoked on.- Returns:
- all
TransactionEvent.Types theEventInterceptorwould like to receive notifications on
- Default:
{}
-
unsolicitedEvents
Deprecated.useUnsolicitedCommitEventsannotation insteadThis element specifies all types ofUnsolicitedCommitEvent.Types the interceptor would like to be invoked on.- Returns:
- all
UnsolicitedCommitEvent.Types theEventInterceptorwould like to receive notifications on
- Default:
{}
-
cacheLifecycleEvents
Deprecated.useCacheLifecycleEventsannotation insteadThis element specifies all types ofCacheLifecycleEvent.Types the interceptor would like to be invoked on.- Returns:
- all
CacheLifecycleEvent.Types theEventInterceptorwould like to receive notifications on
- Default:
{}
-
order
Interceptor.Order orderIff a value ofInterceptor.Order.HIGHis provided this interceptor will request to be the first in the chain of interceptors.- Returns:
- whether this
EventInterceptorshould be first (Interceptor.Order.HIGH) in the chain ofEventInterceptors
- Default:
LOW
-
CacheLifecycleEventsannotation instead