public interface WriteRequestQueue
WriteRequests which are queued to an IoSession.| 限定符和类型 | 方法和说明 |
|---|---|
void |
clear(IoSession session)
Removes all the requests from this session's queue.
|
void |
dispose(IoSession session)
Disposes any releases associated with the specified session.
|
boolean |
isEmpty(IoSession session)
Tells if the WriteRequest queue is empty or not for a session
|
void |
offer(IoSession session,
WriteRequest writeRequest)
Add a new WriteRequest to the session write's queue
|
WriteRequest |
poll(IoSession session)
Get the first request available in the queue for a session.
|
int |
size() |
WriteRequest poll(IoSession session)
session - The sessionvoid offer(IoSession session, WriteRequest writeRequest)
session - The sessionwriteRequest - The writeRequest to addboolean isEmpty(IoSession session)
session - The session to checkvoid clear(IoSession session)
session - The associated sessionvoid dispose(IoSession session)
session - The associated sessionint size()