org.activeio
Interface OutputChannel

All Superinterfaces:
Channel, Disposable, Service
All Known Subinterfaces:
AsyncChannel, AsynchChannel, SyncChannel
All Known Implementing Classes:
AsyncToSyncChannel, DatagramSocketSyncChannel, FilterAsyncChannel, FilterSyncChannel, NIOAsyncChannel, NIOSyncChannel, SocketSyncChannel, SyncToAsyncChannel, VMPipeAsyncChannelFactory.ClassloaderAsyncChannelAdapter, VMPipeAsyncChannelPipe.PipeChannel

public interface OutputChannel
extends Channel

Version:
$Revision$

Field Summary
 
Fields inherited from interface org.activeio.Service
NO_WAIT_TIMEOUT, WAIT_FOREVER_TIMEOUT
 
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 interface org.activeio.Channel
narrow
 
Methods inherited from interface org.activeio.Disposable
dispose
 
Methods inherited from interface org.activeio.Service
start, stop
 

Method Detail

write

public void write(Packet packet)
           throws IOException
Sends a packet down the channel towards the media.

Parameters:
packet -
Throws:
IOException

flush

public void flush()
           throws IOException
Some channels may buffer data which may be sent down if flush() is called.

Throws:
IOException


Copyright © -2007 The ActiveIO Project. All Rights Reserved.