public class SslConnection.DecryptedEndPoint extends AbstractEndPoint
| Constructor and Description |
|---|
DecryptedEndPoint() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close any backing stream associated with the endpoint
|
protected void |
close(Throwable failure) |
int |
fill(ByteBuffer buffer)
Fill the passed buffer with data from this endpoint.
|
boolean |
flush(ByteBuffer... appOuts)
Flush data from the passed header/buffer to this endpoint.
|
long |
getIdleTimeout()
Get the max idle time in ms.
|
SslConnection |
getSslConnection() |
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 |
onIncompleteFlush() |
void |
setConnection(Connection connection) |
void |
setIdleTimeout(long idleTimeout)
Set the idle timeout.
|
void |
shutdownOutput()
Shutdown the output.
|
String |
toString() |
fillInterested, getConnection, getCreatedTimeStamp, getFillInterest, getLocalAddress, getRemoteAddress, isFillInterested, isOptimizedForDirectBuffers, onIdleExpired, onOpen, upgrade, writecheckIdleTimeout, getIdleFor, getIdleTimestamp, getScheduler, notIdle, onClosepublic 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 IdleTimeoutprotected WriteFlusher getWriteFlusher()
getWriteFlusher in class AbstractEndPointprotected void onIncompleteFlush()
onIncompleteFlush in class AbstractEndPointprotected void needsFillInterest()
throws IOException
needsFillInterest in class AbstractEndPointIOExceptionpublic 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(ByteBuffer buffer) throws 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.IOException - if the endpoint is closed.public boolean flush(ByteBuffer... appOuts) throws IOException
EndPointappOuts - the buffers to flushIOException - If the endpoint is closed or output is shutdown.public void shutdownOutput()
EndPointThis call indicates that no more data will be sent on this endpoint that that the remote end should read an EOF once all previously sent data has been consumed. Shutdown may be done either at the TCP/IP level, as a protocol exchange (Eg TLS close handshake) or both.
If the endpoint has EndPoint.isInputShutdown() true, then this call has the same effect
as EndPoint.close().
public boolean isOutputShutdown()
EndPointEndPoint.shutdownOutput()
or EndPoint.close().public void close()
EndPointclose in interface Closeableclose in interface AutoCloseableclose in interface EndPointclose in class AbstractEndPointprotected void close(Throwable failure)
close in class AbstractEndPointpublic 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.public String toString()
toString in class AbstractEndPointCopyright © 1995-2016 Webtide. All Rights Reserved.