public class DefaultIoSessionDataStructureFactory extends Object implements IoSessionDataStructureFactory
IoSessionDataStructureFactory implementation
that creates a new HashMap-based IoSessionAttributeMap
instance and a new synchronized ConcurrentLinkedQueue instance per
IoSession.| Constructor and Description |
|---|
DefaultIoSessionDataStructureFactory() |
| Modifier and Type | Method and Description |
|---|---|
IoSessionAttributeMap |
getAttributeMap(IoSession session) |
WriteRequestQueue |
getWriteRequestQueue(IoSession session) |
public DefaultIoSessionDataStructureFactory()
public IoSessionAttributeMap getAttributeMap(IoSession session) throws Exception
getAttributeMap in interface IoSessionDataStructureFactorysession - The session for which we want the Attribute MapIoSessionAttributeMap which is going to be associated
with the specified session. Please note that the returned
implementation must be thread-safe.Exception - If an error occured while retrieving the mappublic WriteRequestQueue getWriteRequestQueue(IoSession session) throws Exception
getWriteRequestQueue in interface IoSessionDataStructureFactorysession - The session for which we want the WriteRequest queueWriteRequest 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.Exception - If an error occured while retrieving the queueCopyright © 2004–2024 Apache MINA Project. All rights reserved.