public static class ProxyConnectionFactory.ProxyEndPoint extends Object implements EndPoint
| Constructor and Description |
|---|
ProxyEndPoint(EndPoint endp,
InetSocketAddress remote,
InetSocketAddress local) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
fill(ByteBuffer buffer) |
void |
fillInterested(Callback callback) |
boolean |
flush(ByteBuffer... buffer) |
Connection |
getConnection() |
long |
getCreatedTimeStamp() |
long |
getIdleTimeout() |
InetSocketAddress |
getLocalAddress() |
InetSocketAddress |
getRemoteAddress() |
Object |
getTransport() |
boolean |
isFillInterested() |
boolean |
isInputShutdown() |
boolean |
isOpen() |
boolean |
isOptimizedForDirectBuffers() |
boolean |
isOutputShutdown() |
void |
onClose() |
void |
onOpen() |
void |
setConnection(Connection connection) |
void |
setIdleTimeout(long idleTimeout) |
void |
shutdownOutput() |
boolean |
tryFillInterested(Callback callback) |
void |
upgrade(Connection newConnection) |
void |
write(Callback callback,
ByteBuffer... buffers) |
public ProxyEndPoint(EndPoint endp, InetSocketAddress remote, InetSocketAddress local)
public boolean isOptimizedForDirectBuffers()
isOptimizedForDirectBuffers in interface EndPointpublic InetSocketAddress getLocalAddress()
getLocalAddress in interface EndPointpublic InetSocketAddress getRemoteAddress()
getRemoteAddress in interface EndPointpublic long getCreatedTimeStamp()
getCreatedTimeStamp in interface EndPointpublic void shutdownOutput()
shutdownOutput in interface EndPointpublic boolean isOutputShutdown()
isOutputShutdown in interface EndPointpublic boolean isInputShutdown()
isInputShutdown in interface EndPointpublic void close()
public int fill(ByteBuffer buffer) throws IOException
fill in interface EndPointIOExceptionpublic boolean flush(ByteBuffer... buffer) throws IOException
flush in interface EndPointIOExceptionpublic Object getTransport()
getTransport in interface EndPointpublic long getIdleTimeout()
getIdleTimeout in interface EndPointpublic void setIdleTimeout(long idleTimeout)
setIdleTimeout in interface EndPointpublic void fillInterested(Callback callback) throws ReadPendingException
fillInterested in interface EndPointReadPendingExceptionpublic boolean tryFillInterested(Callback callback)
tryFillInterested in interface EndPointpublic boolean isFillInterested()
isFillInterested in interface EndPointpublic void write(Callback callback, ByteBuffer... buffers) throws WritePendingException
write in interface EndPointWritePendingExceptionpublic Connection getConnection()
getConnection in interface EndPointpublic void setConnection(Connection connection)
setConnection in interface EndPointpublic void upgrade(Connection newConnection)
Copyright © 1995–2017 Webtide. All rights reserved.