Interface IoSessionDataStructureFactory
- All Known Implementing Classes:
DefaultIoSessionDataStructureFactory
public interface IoSessionDataStructureFactory
Provides data structures to a newly created session.
-
Method Summary
Modifier and TypeMethodDescriptiongetAttributeMap(IoSession session) getWriteRequestQueue(IoSession session)
-
Method Details
-
getAttributeMap
- Parameters:
session- The session for which we want the Attribute Map- Returns:
- an
IoSessionAttributeMapwhich is going to be associated with the specifiedsession. Please note that the returned implementation must be thread-safe. - Throws:
Exception- If an error occured while retrieving the map
-
getWriteRequestQueue
- Parameters:
session- The session for which we want the WriteRequest queue- Returns:
- an
WriteRequestwhich is going to be associated with the specifiedsession. 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 involvesComparator. - Throws:
Exception- If an error occured while retrieving the queue
-