public class EmptyAsyncConnection extends AbstractConnection implements AsyncConnection
_endp| Constructor and Description |
|---|
EmptyAsyncConnection(AsyncEndPoint endPoint) |
| Modifier and Type | Method and Description |
|---|---|
AsyncEndPoint |
getEndPoint() |
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 |
onInputShutdown() |
getTimeStamp, onIdleExpired, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetTimeStamp, onIdleExpiredpublic EmptyAsyncConnection(AsyncEndPoint endPoint)
public Connection handle() throws IOException
Connectionhandle in interface ConnectionIOException - if the handling of I/O operations failpublic AsyncEndPoint getEndPoint()
getEndPoint in class AbstractConnectionpublic boolean isIdle()
isIdle in interface ConnectionConnection.onIdleExpired(long)public boolean isSuspended()
ConnectionThe 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().
isSuspended in interface Connectionpublic void onClose()
ConnectiononClose in interface Connectionpublic void onInputShutdown()
throws IOException
onInputShutdown in interface AsyncConnectionIOExceptionCopyright © 1995-2012 Mort Bay Consulting. All Rights Reserved.