public interface AsyncEndPoint extends ConnectedEndPoint
| Modifier and Type | Method and Description |
|---|---|
void |
asyncDispatch()
Dispatch the endpoint.
|
void |
cancelTimeout(Timeout.Task task) |
void |
dispatch()
Dispatch the endpoint if it is not already dispatched
|
boolean |
hasProgressed() |
boolean |
isCheckForIdle()
Get if the endpoint should be checked for idleness
|
boolean |
isWritable() |
void |
onIdleExpired(long idleForMs)
Callback when idle.
|
void |
scheduleTimeout(Timeout.Task task,
long timeoutMs) |
void |
scheduleWrite()
Schedule a write dispatch.
|
void |
setCheckForIdle(boolean check)
Set if the endpoint should be checked for idleness
|
getConnection, setConnectionblockReadable, blockWritable, close, fill, flush, flush, flush, getLocalAddr, getLocalHost, getLocalPort, getMaxIdleTime, getRemoteAddr, getRemoteHost, getRemotePort, getTransport, isBlocking, isInputShutdown, isOpen, isOutputShutdown, setMaxIdleTime, shutdownInput, shutdownOutputvoid dispatch()
void asyncDispatch()
void scheduleWrite()
void onIdleExpired(long idleForMs)
An endpoint is idle if there has been no IO activity for
EndPoint.getMaxIdleTime() and isCheckForIdle() is true.
idleForMs - TODOvoid setCheckForIdle(boolean check)
boolean isCheckForIdle()
boolean isWritable()
boolean hasProgressed()
hasProgressed()void scheduleTimeout(Timeout.Task task, long timeoutMs)
void cancelTimeout(Timeout.Task task)
Copyright © 1995-2015 Mort Bay Consulting. All Rights Reserved.