public class ConnectHandler.ClientToProxyConnection extends Object implements AsyncConnection
| Constructor and Description |
|---|
ConnectHandler.ClientToProxyConnection(ConcurrentMap<String,Object> context,
SocketChannel channel,
EndPoint endPoint,
long timestamp) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
closeClient() |
void |
closeServer() |
long |
getTimeStamp() |
Connection |
handle()
Handle the connection.
|
boolean |
isIdle() |
boolean |
isSuspended() |
void |
onClose()
Called when the connection is closed
|
void |
onIdleExpired(long idleForMs)
Called when the connection idle timeout expires
|
void |
onInputShutdown() |
void |
setConnection(ConnectHandler.ProxyToServerConnection connection) |
void |
shutdownOutput() |
String |
toString() |
public ConnectHandler.ClientToProxyConnection(ConcurrentMap<String,Object> context, SocketChannel channel, EndPoint endPoint, long timestamp)
public Connection handle() throws IOException
Connectionhandle in interface ConnectionIOExceptionpublic void onInputShutdown()
throws IOException
onInputShutdown in interface AsyncConnectionIOExceptionpublic long getTimeStamp()
getTimeStamp in interface Connectionpublic boolean isIdle()
isIdle in interface Connectionpublic boolean isSuspended()
isSuspended in interface Connectionpublic void onClose()
ConnectiononClose in interface Connectionpublic void setConnection(ConnectHandler.ProxyToServerConnection connection)
public void closeClient()
throws IOException
IOExceptionpublic void closeServer()
throws IOException
IOExceptionpublic void close()
public void shutdownOutput()
throws IOException
IOExceptionpublic void onIdleExpired(long idleForMs)
ConnectiononIdleExpired in interface ConnectionidleForMs - TODOCopyright © 1995-2012 Mort Bay Consulting. All Rights Reserved.