public interface IoSessionDataStructureFactory
限定符和类型 | 方法和说明 |
---|---|
IoSessionAttributeMap |
getAttributeMap(IoSession session) |
WriteRequestQueue |
getWriteRequestQueue(IoSession session) |
IoSessionAttributeMap getAttributeMap(IoSession session) throws java.lang.Exception
session
- 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.java.lang.Exception
- If an error occured while retrieving the mapWriteRequestQueue getWriteRequestQueue(IoSession session) throws java.lang.Exception
session
- 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
.java.lang.Exception
- If an error occured while retrieving the queue