java.io.Closeable, java.lang.AutoCloseable, EndPoint, Attributespublic static class ProxyConnectionFactory.ProxyEndPoint extends AttributesMap implements EndPoint
| Constructor | Description |
|---|---|
ProxyEndPoint(EndPoint endp,
java.net.InetSocketAddress remote,
java.net.InetSocketAddress local) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
|
int |
fill(java.nio.ByteBuffer buffer) |
|
void |
fillInterested(Callback callback) |
|
boolean |
flush(java.nio.ByteBuffer... buffer) |
|
Connection |
getConnection() |
|
long |
getCreatedTimeStamp() |
|
long |
getIdleTimeout() |
|
java.net.InetSocketAddress |
getLocalAddress() |
|
java.net.InetSocketAddress |
getRemoteAddress() |
|
java.lang.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,
java.nio.ByteBuffer... buffers) |
addAll, clearAttributes, getAttribute, getAttributeEntrySet, getAttributeNames, getAttributeNamesCopy, getAttributeNameSet, removeAttribute, setAttribute, size, toStringpublic ProxyEndPoint(EndPoint endp, java.net.InetSocketAddress remote, java.net.InetSocketAddress local)
public boolean isOptimizedForDirectBuffers()
isOptimizedForDirectBuffers in interface EndPointpublic java.net.InetSocketAddress getLocalAddress()
getLocalAddress in interface EndPointpublic java.net.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(java.nio.ByteBuffer buffer)
throws java.io.IOException
public boolean flush(java.nio.ByteBuffer... buffer)
throws java.io.IOException
public java.lang.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 java.nio.channels.ReadPendingException
fillInterested in interface EndPointjava.nio.channels.ReadPendingExceptionpublic boolean tryFillInterested(Callback callback)
tryFillInterested in interface EndPointpublic boolean isFillInterested()
isFillInterested in interface EndPointpublic void write(Callback callback, java.nio.ByteBuffer... buffers) throws java.nio.channels.WritePendingException
public Connection getConnection()
getConnection in interface EndPointpublic void setConnection(Connection connection)
setConnection in interface EndPointpublic void upgrade(Connection newConnection)
Copyright © 1995–2018 Webtide. All rights reserved.