Skip navigation links

Oracle® Fusion Middleware Java API Reference for Oracle Coherence
12c (12.1.3.0.0)

E47890-01


com.tangosol.net.events.annotation
Interface Interceptor

All Superinterfaces:
java.lang.annotation.Annotation

@Retention(value=RUNTIME)
@Target(value=TYPE)
public interface Interceptor
extends java.lang.annotation.Annotation

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.

Since:
Coherence 12.1.2
Author:
hr 2011.10.07

Nested Class Summary
static class Interceptor.Order
          This 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

identifier

java.lang.String identifier()
A unique identifier for the interceptor.
Returns:
unique identifier for the interceptor

entryEvents

EntryEvent.Type[] entryEvents()
This element specifies all types of EntryEvent.Types the interceptor would like to be invoked on.
Returns:
all EntryEvent.Types the EventInterceptor would like to receive notifications on

entryProcessorEvents

EntryProcessorEvent.Type[] entryProcessorEvents()
This element specifies all types of EntryProcessorEvent.Types the interceptor would like to be invoked on.
Returns:
all EntryProcessorEvent.Types the EventInterceptor would like to receive notifications on

transferEvents

TransferEvent.Type[] transferEvents()
This element specifies all types of TransferEvent.Types the interceptor would like to be invoked on.
Returns:
all TransferEvent.Types the EventInterceptor would like to receive notifications on

transactionEvents

TransactionEvent.Type[] transactionEvents()
This element specifies all types of TransactionEvent.Types the interceptor would like to be invoked on.
Returns:
all TransactionEvent.Types the EventInterceptor would like to receive notifications on

order

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.
Returns:
whether this EventInterceptor should be first (Interceptor.Order.HIGH) in the chain of EventInterceptors

Skip navigation links

Oracle® Fusion Middleware Java API Reference for Oracle Coherence
12c (12.1.3.0.0)

E47890-01


Copyright © 2000, 2014, Oracle and/or its affiliates. All rights reserved.