|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
public interface Connection
Abstract Connection used by Jetty Connectors.
Jetty will call the handle method of a connection when there is work to be done on the connection. For blocking connections, this is soon as the connection is open and handle will keep being called until the connection is closed. For non-blocking connections, handle will only be called if there are bytes to be read or the connection becomes writable after being write blocked.
SelectorManager| 方法摘要 | |
|---|---|
long |
getTimeStamp()
|
Connection |
handle()
Handle the connection. |
boolean |
isIdle()
|
boolean |
isSuspended()
The semantic of this method is to return true to indicate interest in further reads, or false otherwise, but it is misnamed and should be really called isReadInterested(). |
void |
onClose()
Called after the connection is closed |
void |
onIdleExpired(long idleForMs)
Called when the connection idle timeout expires |
| 方法详细信息 |
|---|
Connection handle()
throws IOException
IOException - if the handling of I/O operations faillong getTimeStamp()
boolean isIdle()
onIdleExpired(long)boolean isSuspended()
The semantic of this method is to return true to indicate interest in further reads,
or false otherwise, but it is misnamed and should be really called isReadInterested().
void onClose()
void onIdleExpired(long idleForMs)
idleForMs - how long the connection has been idleisIdle()
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||