|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface WriteRequestQueue
Stores WriteRequest
s which are queued to an IoSession
.
Method Summary | |
---|---|
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. |
Method Detail |
---|
WriteRequest poll(IoSession session)
session
- The session
void offer(IoSession session, WriteRequest writeRequest)
session
- The sessionwriteRequest
- The writeRequest to addboolean isEmpty(IoSession session)
session
- The session to check
true
if the writeRequest is emptyvoid clear(IoSession session)
session
- The associated sessionvoid dispose(IoSession session)
session
- The associated session
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |