|
Oracle® Coherence Java API Reference Release 3.7.1.0 E22843-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
com.tangosol.net.events.AbstractEventInterceptor
public abstract class AbstractEventInterceptor
An abstract base implementation of EventInterceptor.
| Field Summary | |
|---|---|
protected boolean |
m_fFirstFlag indicating whether this EventInterceptor should be added at the head of the EventDispatcher's interceptor chain. |
protected java.util.Set |
m_setTypesThe set of event types that this EventInterceptor subscribes to. |
| Constructor Summary | |
|---|---|
protected |
AbstractEventInterceptor()Construct an EventInterceptor that subscribes to all events registering at the end of the interceptor chain. |
protected |
AbstractEventInterceptor(boolean fFirst)Construct an EventInterceptor that subscribes to all events. |
protected |
AbstractEventInterceptor(java.util.Set setTypes, boolean fFirst)Construct an EventInterceptor with specified Event types and chain position. |
| Method Summary | |
|---|---|
abstract boolean |
evaluate(EventDispatcher dispatcher)Evaluate whether this EventInterceptor should be registered with the specified EventDispatcher. |
java.util.Set |
getEventTypes()Return the set of event types that this EventInterceptor subscribes to. |
void |
introduceEventDispatcher(java.lang.String sIdentifier, EventDispatcher dispatcher)Introduce and possibly bind this EventInterceptor to the specified EventDispatcher. |
boolean |
isFirst()Return true iff this EventInterceptor should be added to the head of the EventDispatcher's chain of EventInterceptors. |
| Methods inherited from interface com.tangosol.net.events.EventInterceptor |
|---|
onEvent |
| Field Detail |
|---|
protected boolean m_fFirst
EventInterceptor should be added at the head of the EventDispatcher's interceptor chain.protected java.util.Set m_setTypes
EventInterceptor subscribes to.| Constructor Detail |
|---|
protected AbstractEventInterceptor()
EventInterceptor that subscribes to all events registering at the end of the interceptor chain.protected AbstractEventInterceptor(boolean fFirst)
EventInterceptor that subscribes to all events.
fFirst - true iff the EventInterceptor is to be added to the head of the EventDispatcher interceptor chain
protected AbstractEventInterceptor(java.util.Set setTypes,
boolean fFirst)
EventInterceptor with specified Event types and chain position.
setTypes - the set of Event types this interceptor subscribes to, or null to subscribe to all eventsfFirst - true iff the EventInterceptor is to be added to the head of the EventDispatcher interceptor chain| Method Detail |
|---|
public void introduceEventDispatcher(java.lang.String sIdentifier,
EventDispatcher dispatcher)
EventInterceptor to the specified EventDispatcher.
Note that EventInterceptors are responsible for determining whether they should be registered with an EventDispatcher by calling EventDispatcher.addEventInterceptor(java.lang.String, com.tangosol.net.events.EventInterceptor, java.util.Set, boolean).
introduceEventDispatcher in interface EventInterceptorsIdentifier - the unique name identifying this interceptordispatcher - the dispatcher being introducedpublic java.util.Set getEventTypes()
EventInterceptor subscribes to.public boolean isFirst()
EventInterceptor should be added to the head of the EventDispatcher's chain of EventInterceptors.public abstract boolean evaluate(EventDispatcher dispatcher)
EventInterceptor should be registered with the specified EventDispatcher.dispatcher - the EventDispatcher to be evaluated
|
Oracle® Coherence Java API Reference Release 3.7.1.0 E22843-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||