|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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
Method Summary | |
---|---|
void |
closed()
Called when the connection is closed |
long |
getTimeStamp()
|
Connection |
handle()
Handle the connection. |
void |
idleExpired()
Called when the connection idle timeout expires |
boolean |
isIdle()
|
boolean |
isSuspended()
|
Method Detail |
---|
Connection handle() throws IOException
IOException
long getTimeStamp()
boolean isIdle()
boolean isSuspended()
void closed()
void idleExpired()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |