public class ConnectHandler.ProxyToServerConnection extends Object implements AsyncConnection
Constructor and Description |
---|
ConnectHandler.ProxyToServerConnection(ConcurrentMap<String,Object> context,
Buffer data) |
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 |
ready() |
void |
setConnection(ConnectHandler.ClientToProxyConnection connection) |
void |
setEndPoint(AsyncEndPoint endpoint) |
void |
setTimeStamp(long timestamp) |
void |
shutdownOutput() |
String |
toString() |
void |
waitReady(long timeout) |
public ConnectHandler.ProxyToServerConnection(ConcurrentMap<String,Object> context, Buffer data)
public Connection handle() throws IOException
Connection
handle
in interface Connection
IOException
public void onInputShutdown() throws IOException
onInputShutdown
in interface AsyncConnection
IOException
public void setConnection(ConnectHandler.ClientToProxyConnection connection)
public long getTimeStamp()
getTimeStamp
in interface Connection
public void setTimeStamp(long timestamp)
public void setEndPoint(AsyncEndPoint endpoint)
public boolean isIdle()
isIdle
in interface Connection
public boolean isSuspended()
isSuspended
in interface Connection
public void onClose()
Connection
onClose
in interface Connection
public void ready()
public void waitReady(long timeout) throws IOException
IOException
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)
Connection
onIdleExpired
in interface Connection
idleForMs
- TODOCopyright © 1995-2012 Mort Bay Consulting. All Rights Reserved.