org.activeio.filter
Class WriteBufferedAsyncChannel
java.lang.Object
org.activeio.FilterAsyncChannel
org.activeio.filter.WriteBufferedAsyncChannel
- All Implemented Interfaces:
- AsyncChannel, AsyncChannelListener, Channel, Disposable, InputAsyncChannel, OutputChannel, Service
- public class WriteBufferedAsyncChannel
- extends FilterAsyncChannel
Method Summary |
void |
flush()
Some channels may buffer data which may be sent down if flush() is called. |
void |
write(Packet packet)
Sends a packet down the channel towards the media. |
WriteBufferedAsyncChannel
public WriteBufferedAsyncChannel(AsyncChannel channel)
WriteBufferedAsyncChannel
public WriteBufferedAsyncChannel(AsyncChannel channel,
Packet buffer)
WriteBufferedAsyncChannel
public WriteBufferedAsyncChannel(AsyncChannel channel,
Packet buffer,
boolean enableDirectWrites)
write
public void write(Packet packet)
throws IOException
- Description copied from interface:
OutputChannel
- Sends a packet down the channel towards the media.
- Specified by:
write
in interface OutputChannel
- Overrides:
write
in class FilterAsyncChannel
- Throws:
IOException
flush
public void flush()
throws IOException
- Description copied from interface:
OutputChannel
- Some channels may buffer data which may be sent down if flush() is called.
- Specified by:
flush
in interface OutputChannel
- Overrides:
flush
in class FilterAsyncChannel
- Throws:
IOException
Copyright © -2007 The ActiveIO Project. All Rights Reserved.