java.io.Closeable, java.lang.AutoCloseable, EndPointpublic class SslConnection.DecryptedEndPoint extends AbstractEndPoint
| Constructor | Description |
|---|---|
DecryptedEndPoint() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
doClose() |
|
void |
doShutdownOutput() |
|
int |
fill(java.nio.ByteBuffer buffer) |
Fill the passed buffer with data from this endpoint.
|
boolean |
flush(java.nio.ByteBuffer... appOuts) |
Flush data from the passed header/buffer to this endpoint.
|
long |
getIdleTimeout() |
Get the max idle time in ms.
|
java.net.InetSocketAddress |
getLocalAddress() |
|
java.net.InetSocketAddress |
getRemoteAddress() |
|
SslConnection |
getSslConnection() |
|
java.lang.Object |
getTransport() |
|
protected WriteFlusher |
getWriteFlusher() |
|
boolean |
isInputShutdown() |
Test if the input is shutdown.
|
boolean |
isOpen() |
This abstract method should be called to check if idle timeouts
should still be checked.
|
boolean |
isOutputShutdown() |
Test if output is shutdown.
|
protected void |
needsFillInterest() |
|
protected void |
onFillable() |
|
protected void |
onFillableFail(java.lang.Throwable failure) |
|
protected void |
onIncompleteFlush() |
|
void |
setConnection(Connection connection) |
|
void |
setIdleTimeout(long idleTimeout) |
Set the idle timeout.
|
java.lang.String |
toString() |
checkFill, checkFlush, close, close, doShutdownInput, fillInterested, getConnection, getCreatedTimeStamp, getFillInterest, isFillInterested, isOptimizedForDirectBuffers, onClose, onClose, onIdleExpired, onOpen, reset, shutdownInput, shutdownOutput, toConnectionString, toEndPointString, tryFillInterested, upgrade, writecheckIdleTimeout, getIdleFor, getIdleTimestamp, getScheduler, notIdlepublic long getIdleTimeout()
EndPointThe max idle time is the time the endpoint can be idle before extraordinary handling takes place.
getIdleTimeout in interface EndPointgetIdleTimeout in class IdleTimeoutpublic void setIdleTimeout(long idleTimeout)
EndPointsetIdleTimeout in interface EndPointsetIdleTimeout in class IdleTimeoutidleTimeout - the idle timeout in MS. Timeout <= 0 implies an infinite timeoutpublic boolean isOpen()
IdleTimeoutisOpen in interface EndPointisOpen in class AbstractEndPointpublic java.net.InetSocketAddress getLocalAddress()
EndPoint is bound, or null
if this EndPoint does not represent a network connection.public java.net.InetSocketAddress getRemoteAddress()
EndPoint is bound, or null
if this EndPoint does not represent a network connection.protected WriteFlusher getWriteFlusher()
getWriteFlusher in class AbstractEndPointprotected void onFillable()
protected void onFillableFail(java.lang.Throwable failure)
public void setConnection(Connection connection)
setConnection in interface EndPointsetConnection in class AbstractEndPointconnection - the Connection associated with this EndPointEndPoint.getConnection(),
EndPoint.upgrade(Connection)public SslConnection getSslConnection()
public int fill(java.nio.ByteBuffer buffer)
throws java.io.IOException
EndPointbuffer - The buffer to fill. The position and limit are modified during the fill. After the
operation, the position is unchanged and the limit is increased to reflect the new data filled.int value indicating the number of bytes
filled or -1 if EOF is read or the input is shutdown.java.io.IOException - if the endpoint is closed.protected void needsFillInterest()
needsFillInterest in class AbstractEndPointpublic boolean flush(java.nio.ByteBuffer... appOuts)
throws java.io.IOException
EndPointappOuts - the buffers to flushjava.io.IOException - If the endpoint is closed or output is shutdown.protected void onIncompleteFlush()
onIncompleteFlush in class AbstractEndPointpublic void doShutdownOutput()
doShutdownOutput in class AbstractEndPointpublic boolean isOutputShutdown()
EndPointEndPoint.shutdownOutput()
or EndPoint.close().isOutputShutdown in interface EndPointisOutputShutdown in class AbstractEndPointpublic void doClose()
doClose in class AbstractEndPointpublic java.lang.Object getTransport()
public boolean isInputShutdown()
EndPointEndPoint.fill(ByteBuffer). Once the input is shutdown, all calls to
EndPoint.fill(ByteBuffer) will return -1, until such time as the
end point is close, when they will return EofException.isInputShutdown in interface EndPointisInputShutdown in class AbstractEndPointpublic java.lang.String toString()
toString in class AbstractEndPointCopyright © 1995–2018 Webtide. All rights reserved.