|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A ChannelConsumer object is used to receive 'up' Packet
objects.
TODO: describe the threading model so that the implementor of this interface can know if
the methods in this interface can block for a long time or not. I'm thinking that it would
be best if these methods are not allowed to block for a long time to encourage SEDA style
processing.
Method Summary | |
void |
onPacket(Packet packet)
A AsyncChannel will call this method to deliver an 'up' packet to a consumer. |
void |
onPacketError(IOException error)
A AsyncChannel will call this method when a async failure occurs in the channel. |
Method Detail |
public void onPacket(Packet packet)
AsyncChannel
will call this method to deliver an 'up' packet to a consumer.
packet
- public void onPacketError(IOException error)
AsyncChannel
will call this method when a async failure occurs in the channel.
error
- the exception that describes the failure.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |