|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
@Retention(value=RUNTIME)
@Target(value=TYPE)
public interface Interceptor
Interceptor is an annotation that should be applied to 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.
| Nested Class Summary | |
|---|---|
static class |
Interceptor.OrderThis enum provides an indication of whether the EventInterceptor should request to be first in the chain of EventInterceptors, hence have a HIGH priority. |
| Method Summary | |
|---|---|
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. |
java.lang.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. |
| Methods inherited from interface java.lang.annotation.Annotation |
|---|
annotationType, equals, hashCode, toString |
| Method Detail |
|---|
java.lang.String identifier()
EntryEvent.Type[] entryEvents()
EntryEvent.Types the interceptor would like to be invoked on.EntryEvent.Types the EventInterceptor would like to receive notifications onEntryProcessorEvent.Type[] entryProcessorEvents()
EntryProcessorEvent.Types the interceptor would like to be invoked on.EntryProcessorEvent.Types the EventInterceptor would like to receive notifications onTransferEvent.Type[] transferEvents()
TransferEvent.Types the interceptor would like to be invoked on.TransferEvent.Types the EventInterceptor would like to receive notifications onTransactionEvent.Type[] transactionEvents()
TransactionEvent.Types the interceptor would like to be invoked on.TransactionEvent.Types the EventInterceptor would like to receive notifications onInterceptor.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
|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||