|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.mina.core.session.DefaultIoSessionDataStructureFactory
public class DefaultIoSessionDataStructureFactory
The default IoSessionDataStructureFactory
implementation
that creates a new HashMap
-based IoSessionAttributeMap
instance and a new synchronized ConcurrentLinkedQueue
instance per
IoSession
.
Constructor Summary | |
---|---|
DefaultIoSessionDataStructureFactory()
|
Method Summary | |
---|---|
IoSessionAttributeMap |
getAttributeMap(IoSession session)
Returns an IoSessionAttributeMap which is going to be associated
with the specified session. |
WriteRequestQueue |
getWriteRequestQueue(IoSession session)
Returns an WriteRequest which is going to be associated with
the specified session. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultIoSessionDataStructureFactory()
Method Detail |
---|
public IoSessionAttributeMap getAttributeMap(IoSession session) throws java.lang.Exception
IoSessionDataStructureFactory
IoSessionAttributeMap
which is going to be associated
with the specified session. Please note that the returned
implementation must be thread-safe.
getAttributeMap
in interface IoSessionDataStructureFactory
java.lang.Exception
public WriteRequestQueue getWriteRequestQueue(IoSession session) throws java.lang.Exception
IoSessionDataStructureFactory
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
.
getWriteRequestQueue
in interface IoSessionDataStructureFactory
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |