org.eclipse.jetty.io
接口 AsyncEndPoint

所有超级接口:
ConnectedEndPoint, EndPoint
所有已知实现类:
NetworkTrafficSelectChannelEndPoint, SelectChannelEndPoint, SslConnection.SslEndPoint

public interface AsyncEndPoint
extends ConnectedEndPoint


方法摘要
 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
 
从接口 org.eclipse.jetty.io.ConnectedEndPoint 继承的方法
getConnection, setConnection
 
从接口 org.eclipse.jetty.io.EndPoint 继承的方法
blockReadable, blockWritable, close, fill, flush, flush, flush, getLocalAddr, getLocalHost, getLocalPort, getMaxIdleTime, getRemoteAddr, getRemoteHost, getRemotePort, getTransport, isBlocking, isInputShutdown, isOpen, isOutputShutdown, setMaxIdleTime, shutdownInput, shutdownOutput
 

方法详细信息

dispatch

void dispatch()
Dispatch the endpoint if it is not already dispatched


asyncDispatch

void asyncDispatch()
Dispatch the endpoint. If it is already dispatched, schedule a redispatch


scheduleWrite

void scheduleWrite()
Schedule a write dispatch. Set the endpoint to not be writable and schedule a dispatch when it becomes writable.


onIdleExpired

void onIdleExpired(long idleForMs)
Callback when idle.

An endpoint is idle if there has been no IO activity for EndPoint.getMaxIdleTime() and isCheckForIdle() is true.

参数:
idleForMs - TODO

setCheckForIdle

void setCheckForIdle(boolean check)
Set if the endpoint should be checked for idleness


isCheckForIdle

boolean isCheckForIdle()
Get if the endpoint should be checked for idleness


isWritable

boolean isWritable()

hasProgressed

boolean hasProgressed()
返回:
True if IO has been successfully performed since the last call to hasProgressed()

scheduleTimeout

void scheduleTimeout(Timeout.Task task,
                     long timeoutMs)

cancelTimeout

void cancelTimeout(Timeout.Task task)


Copyright © 2013. All Rights Reserved.