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: 332218 $, $Date: 2005-11-10 12:52:42 +0900 $
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, 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

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


getFilterChain

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


write

void write(ByteBuffer buf,
           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.



Copyright © 2004-2005 . All Rights Reserved.