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, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getTimeStamp, onIdleExpired
public EmptyAsyncConnection(AsyncEndPoint endPoint)
public Connection handle() throws IOException
Connection
handle
in interface Connection
IOException
- if the handling of I/O operations failpublic AsyncEndPoint getEndPoint()
getEndPoint
in class AbstractConnection
public boolean isIdle()
isIdle
in interface Connection
Connection.onIdleExpired(long)
public boolean isSuspended()
Connection
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()
.
isSuspended
in interface Connection
public void onClose()
Connection
onClose
in interface Connection
public void onInputShutdown() throws IOException
onInputShutdown
in interface AsyncConnection
IOException
Copyright © 1995-2013 Mort Bay Consulting. All Rights Reserved.