|
JCC v0.9.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An instance of this EventFilter is supplied to the event source
in the addxxxListener() method by the EventListener to indicate what Events are
required by the EventListener. When a JcpEvent
occurs, the event source
will call the predicate getEventDisposition(JcpEvent)
to determine if the Event should be fired to the EventListener.
Given an event, getEventDisposition()
returns
EVENT_DISCARD
if the listener is not interested in receiving the event.
EVENT_NOTIFY
if the listener should be sent a non-blocking notification.
EVENT_BLOCK
if the listener should be sent a blocking event (trigger).
This return value applies to JccConnectionEvent
s only.
JccProvider
interface.
Field Summary | |
static int |
EVENT_BLOCK
Predicate return constant: Indicates that the specified event is required and is a blocking Event, that is, call processing will be suspended until the JccConnection.continueProcessing()
or any other valid method is called. |
static int |
EVENT_DISCARD
Predicate return constant: Indicates that the specified event is not required. |
static int |
EVENT_NOTIFY
Predicate return constant: Indicates that the specified event is required and is a non-blocking Event (notification only), that is, call processing will not be suspended. |
Method Summary | |
int |
getEventDisposition(JcpEvent event)
This predicate indicates whether the specified Event is required by an EventListener. |
Field Detail |
public static final int EVENT_DISCARD
getEventDisposition()
public static final int EVENT_NOTIFY
getEventDisposition()
public static final int EVENT_BLOCK
JccConnection.continueProcessing()
or any other valid method is called.
This is one of the possible return values of getEventDisposition()
Method Detail |
public int getEventDisposition(JcpEvent event)
EVENT_DISCARD
if the listener is not interested in receiving the event.
EVENT_NOTIFY
if the listener should be sent a non-blocking notification.
EVENT_BLOCK
if the listener should be sent a blocking event (trigger).
This return value applies to JccConnectionEvents only since the other type of events
are non-blocking.
event
- specifies the event.
|
JCC v0.9.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |