public interface ProtocolObserver
Modifier and Type | Method and Description |
---|---|
boolean |
down(Event evt,
int num_evts)
Called when an event is about to be dispatched to the protocol (before it is dispatched).
|
boolean |
passDown(Event evt)
Called when an event is about to be passed down to the next lower protocol.
|
boolean |
passUp(Event evt)
Called when an event is about to be passed up to the next higher protocol.
|
void |
setProtocol(Protocol prot)
Called when a ProtocolObserver is attached to a protcol.
|
boolean |
up(Event evt,
int num_evts)
Called when an event is about to be dispatched to the protocol (before it is dispatched).
|
void setProtocol(Protocol prot)
boolean up(Event evt, int num_evts)
evt
- The event to be processed by the protocol. This is not a copy, so changes
to the event will be seen by the protocol !num_evts
- The number of events currently in the up-queue (including this event).
This number may increase while we're in the callback as the up-handler thread in the
upper protocol layer puts new events into the up queue.boolean passUp(Event evt)
evt
- The event to be processed by the protocol. This is not a copy, so changes
to the event will be seen by the protocol !boolean down(Event evt, int num_evts)
evt
- The event to be processed by the protocol. This is not a copy, so changes
to the event will be seen by the protocol !num_evts
- The number of events currently in the down-queue (including this event).
This number may increase while we're in the callback as the down-handler thread in the
upper protocol layer puts new events into the down queue.boolean passDown(Event evt)
evt
- The event to be processed by the protocol. This is not a copy, so changes
to the event will be seen by the protocol !Copyright ? 1998-2006 Bela Ban. All Rights Reserved.