|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.activeio.FilterAsynchChannel
org.activeio.filter.PacketAggregatingAsynchChannel
This PacketAggregatingAsynchChannel can be used when the client is sending a
'record' style packet down the channel stack and needs receiving end to
receive the same 'record' packets.
This is very usefull since in general, a channel does not garantee that a
Packet that is sent down will not be fragmented or combined with other Packet
objects.
This AsynchChannel
adds a 4 byte header
to each packet that is sent down.
Field Summary |
Fields inherited from class org.activeio.FilterAsynchChannel |
channelListener, next |
Fields inherited from interface org.activeio.Service |
NO_WAIT_TIMEOUT, WAIT_FOREVER_TIMEOUT |
Constructor Summary | |
PacketAggregatingAsynchChannel(AsynchChannel next)
|
Method Summary | |
void |
onPacket(Packet packet)
A AsynchChannel will call this method to deliver an 'up' packet to a consumer. |
void |
write(Packet packet)
Sends a packet down the channel towards the media. |
Methods inherited from class org.activeio.FilterAsynchChannel |
dispose, flush, getAsynchChannelListener, getNext, narrow, onPacketError, setAsynchChannelListener, start, stop, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public PacketAggregatingAsynchChannel(AsynchChannel next)
Method Detail |
public void onPacket(Packet packet)
AsynchChannelListener
AsynchChannel
will call this method to deliver an 'up' packet to a consumer.
onPacket
in interface AsynchChannelListener
onPacket
in class FilterAsynchChannel
org.activeio.AsynchChannelListener#onPacket(org.activeio.channel.Packet)
public void write(Packet packet) throws java.io.IOException
OutputChannel
write
in interface OutputChannel
write
in class FilterAsynchChannel
java.io.IOException
org.activeio.Channel#write(org.activeio.channel.Packet)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |