|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
A ChannelConsumer object is used to receive 'up' org.activeio.channel.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 AsynchChannel will call this method to deliver an 'up' packet to a consumer. |
void |
onPacketError(java.io.IOException error)
A AsynchChannel will call this method when a async failure occurs in the channel. |
| Method Detail |
public void onPacket(Packet packet)
AsynchChannel will call this method to deliver an 'up' packet to a consumer.
packet - public void onPacketError(java.io.IOException error)
AsynchChannel 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 | ||||||||||