public class SslConnection.DecryptedEndPoint extends AbstractEndPoint
Constructor and Description |
---|
SslConnection.DecryptedEndPoint() |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close any backing stream associated with the endpoint
|
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.
|
protected FillInterest |
getFillInterest() |
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 boolean |
needsFill() |
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, getLocalAddress, getRemoteAddress, onClose, onIdleExpired, onOpen, write
checkIdleTimeout, getIdleTimeout, getIdleTimestamp, notIdle
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getIdleTimeout
protected FillInterest getFillInterest()
getFillInterest
in class AbstractEndPoint
public void setIdleTimeout(long idleTimeout)
EndPoint
setIdleTimeout
in interface EndPoint
setIdleTimeout
in class IdleTimeout
idleTimeout
- the idle timeout in MS. Timeout <= 0 implies an infinite timeoutprotected WriteFlusher getWriteFlusher()
getWriteFlusher
in class AbstractEndPoint
protected void onIncompleteFlush()
onIncompleteFlush
in class AbstractEndPoint
protected boolean needsFill() throws IOException
needsFill
in class AbstractEndPoint
IOException
public void setConnection(Connection connection)
setConnection
in interface EndPoint
setConnection
in class AbstractEndPoint
connection
- the Connection
associated with this EndPoint
EndPoint.getConnection()
public SslConnection getSslConnection()
public int fill(ByteBuffer buffer) throws IOException
EndPoint
buffer
- 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.EofException
- If the endpoint is closed.IOException
public boolean flush(ByteBuffer... appOuts) throws IOException
EndPoint
EofException
- If the endpoint is closed or output is shutdown.IOException
public void shutdownOutput()
EndPoint
This 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()
EndPoint
EndPoint.shutdownOutput()
or EndPoint.close()
.public void close()
EndPoint
close
in interface Closeable
close
in interface AutoCloseable
close
in interface EndPoint
close
in class AbstractEndPoint
public boolean isOpen()
IdleTimeout
isOpen
in interface EndPoint
isOpen
in class IdleTimeout
public Object getTransport()
public boolean isInputShutdown()
EndPoint
EndPoint.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 AbstractEndPoint
Copyright © 1995-2015 Webtide. All Rights Reserved.