public class ConnectHandler.ProxyToServerConnection extends java.lang.Object implements AsyncConnection
| Constructor and Description |
|---|
ConnectHandler.ProxyToServerConnection(java.util.concurrent.ConcurrentMap<java.lang.String,java.lang.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()
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 |
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() |
java.lang.String |
toString() |
void |
waitReady(long timeout) |
public ConnectHandler.ProxyToServerConnection(java.util.concurrent.ConcurrentMap<java.lang.String,java.lang.Object> context,
Buffer data)
public java.lang.String toString()
toString in class java.lang.Objectpublic Connection handle() throws java.io.IOException
Connectionhandle in interface Connectionjava.io.IOException - if the handling of I/O operations failpublic void onInputShutdown()
throws java.io.IOException
onInputShutdown in interface AsyncConnectionjava.io.IOExceptionpublic void setConnection(ConnectHandler.ClientToProxyConnection connection)
public long getTimeStamp()
getTimeStamp in interface Connectionpublic void setTimeStamp(long timestamp)
public void setEndPoint(AsyncEndPoint endpoint)
public 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 ready()
public void waitReady(long timeout)
throws java.io.IOException
java.io.IOExceptionpublic void closeClient()
throws java.io.IOException
java.io.IOExceptionpublic void closeServer()
throws java.io.IOException
java.io.IOExceptionpublic void close()
public void shutdownOutput()
throws java.io.IOException
java.io.IOExceptionpublic void onIdleExpired(long idleForMs)
ConnectiononIdleExpired in interface ConnectionidleForMs - how long the connection has been idleConnection.isIdle()Copyright © 2013 FuseSource, Corp.. All Rights Reserved.