org.activeio.filter
Class WriteBufferedAsyncChannel

java.lang.Object
  extended byorg.activeio.FilterAsyncChannel
      extended byorg.activeio.filter.WriteBufferedAsyncChannel
All Implemented Interfaces:
AsyncChannel, AsyncChannelListener, Channel, Disposable, InputAsyncChannel, OutputChannel, Service

public class WriteBufferedAsyncChannel
extends FilterAsyncChannel


Field Summary
 
Fields inherited from class org.activeio.FilterAsyncChannel
channelListener, next
 
Fields inherited from interface org.activeio.Service
NO_WAIT_TIMEOUT, WAIT_FOREVER_TIMEOUT
 
Constructor Summary
WriteBufferedAsyncChannel(AsyncChannel channel)
           
WriteBufferedAsyncChannel(AsyncChannel channel, Packet buffer)
           
WriteBufferedAsyncChannel(AsyncChannel channel, Packet buffer, boolean enableDirectWrites)
           
 
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.
 
Methods inherited from class org.activeio.FilterAsyncChannel
dispose, getAsyncChannelListener, getNext, narrow, onPacket, onPacketError, setAsyncChannelListener, start, stop, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WriteBufferedAsyncChannel

public WriteBufferedAsyncChannel(AsyncChannel channel)

WriteBufferedAsyncChannel

public WriteBufferedAsyncChannel(AsyncChannel channel,
                                 Packet buffer)

WriteBufferedAsyncChannel

public WriteBufferedAsyncChannel(AsyncChannel channel,
                                 Packet buffer,
                                 boolean enableDirectWrites)
Method Detail

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.