|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IoSessionDataStructureFactory
Provides data structures to a newly created session.
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. |
Method Detail |
---|
IoSessionAttributeMap getAttributeMap(IoSession session) throws java.lang.Exception
IoSessionAttributeMap
which is going to be associated
with the specified session. Please note that the returned
implementation must be thread-safe.
java.lang.Exception
WriteRequestQueue getWriteRequestQueue(IoSession session) throws java.lang.Exception
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
.
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |