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() |
boolean |
isIdle() |
boolean |
isSuspended() |
void |
onClose() |
void |
onIdleExpired(long idleForMs) |
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
handle
in interface Connection
IOException
public void onInputShutdown() throws IOException
onInputShutdown
in interface AsyncConnection
IOException
public long getTimeStamp()
getTimeStamp
in interface Connection
public boolean isIdle()
isIdle
in interface Connection
public boolean isSuspended()
isSuspended
in interface Connection
public void onClose()
onClose
in interface Connection
public void setConnection(ConnectHandler.ProxyToServerConnection connection)
public void closeClient() throws IOException
IOException
public void closeServer() throws IOException
IOException
public void close()
public void shutdownOutput() throws IOException
IOException
public void onIdleExpired(long idleForMs)
onIdleExpired
in interface Connection
Copyright © 1995-2013 Mort Bay Consulting. All Rights Reserved.