org.apache.mina.io
Interface IoSession

All Superinterfaces:
Session

public interface IoSession
extends Session

A Session that represents low-level I/O connection between two endpoints regardless of underlying transport types.

Version:
$Rev: 326586 $, $Date: 2005-10-19 17:50:29 +0200 (Wed, 19 Oct 2005) $
Author:
The Apache Directory Project (dev@directory.apache.org)
See Also:
Session

Method Summary
 IoFilterChain getFilterChain()
          Returns the filter chain that only affects this session.
 IoHandler getHandler()
          Returns the event handler for this session.
 void write(ByteBuffer buf, java.lang.Object marker)
          Writes the content of the specified buf.
 
Methods inherited from interface org.apache.mina.common.Session
close, close, getAttachment, getAttribute, getAttributeKeys, getConfig, getCreationTime, getIdleCount, getLastIdleTime, getLastIoTime, getLastReadTime, getLastWriteTime, getLocalAddress, getReadBytes, getRemoteAddress, getScheduledWriteRequests, getTransportType, getWrittenBytes, getWrittenWriteRequests, isConnected, isIdle, removeAttribute, setAttachment, setAttribute
 

Method Detail

getHandler

public IoHandler getHandler()
Returns the event handler for this session.


getFilterChain

public IoFilterChain getFilterChain()
Returns the filter chain that only affects this session.


write

public void write(ByteBuffer buf,
                  java.lang.Object marker)
Writes the content of the specified buf. This operation is asynchronous, and you'll get notified by IoHandler.dataWritten(IoSession, Object) event. The specified marker will be passes as a parameter.