org.apache.mina.core.session
Class DefaultIoSessionDataStructureFactory
java.lang.Object
org.apache.mina.core.session.DefaultIoSessionDataStructureFactory
- All Implemented Interfaces:
- IoSessionDataStructureFactory
public class DefaultIoSessionDataStructureFactory
- extends Object
- implements IoSessionDataStructureFactory
The default IoSessionDataStructureFactory
implementation
that creates a new HashMap
-based IoSessionAttributeMap
instance and a new synchronized CircularQueue
instance per
IoSession
.
- Version:
- $Rev: 671827 $, $Date: 2008-06-26 10:49:48 +0200 (jeu, 26 jun 2008) $
- Author:
- The Apache MINA Project (dev@mina.apache.org)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultIoSessionDataStructureFactory
public DefaultIoSessionDataStructureFactory()
getAttributeMap
public IoSessionAttributeMap getAttributeMap(IoSession session)
throws Exception
- Description copied from interface:
IoSessionDataStructureFactory
- Returns an
IoSessionAttributeMap
which is going to be associated
with the specified session. Please note that the returned
implementation must be thread-safe.
- Specified by:
getAttributeMap
in interface IoSessionDataStructureFactory
- Throws:
Exception
getWriteRequestQueue
public WriteRequestQueue getWriteRequestQueue(IoSession session)
throws Exception
- Description copied from interface:
IoSessionDataStructureFactory
- Returns an
WriteRequest
which is going to be associated with
the specified session. Please note that the returned
implementation must be thread-safe and robust enough to deal
with various messages types (even what you didn't expect at all),
especially when you are going to implement a priority queue which
involves Comparator
.
- Specified by:
getWriteRequestQueue
in interface IoSessionDataStructureFactory
- Throws:
Exception
Copyright © 2004-2008 Apache MINA Project. All Rights Reserved.