public class SslConnection.DecryptedEndPoint extends AbstractEndPoint
| 构造器和说明 |
|---|
DecryptedEndPoint() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
doClose() |
void |
doShutdownOutput() |
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.
|
InetSocketAddress |
getLocalAddress() |
InetSocketAddress |
getRemoteAddress() |
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.
|
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 在接口中 EndPointgetIdleTimeout 在类中 IdleTimeoutpublic void setIdleTimeout(long idleTimeout)
EndPointsetIdleTimeout 在接口中 EndPointsetIdleTimeout 在类中 IdleTimeoutidleTimeout - the idle timeout in MS. Timeout <= 0 implies an infinite timeoutpublic boolean isOpen()
IdleTimeoutisOpen 在接口中 EndPointisOpen 在类中 AbstractEndPointpublic InetSocketAddress getLocalAddress()
EndPoint is bound, or null
if this EndPoint does not represent a network connection.public InetSocketAddress getRemoteAddress()
EndPoint is bound, or null
if this EndPoint does not represent a network connection.protected WriteFlusher getWriteFlusher()
getWriteFlusher 在类中 AbstractEndPointprotected void onIncompleteFlush()
onIncompleteFlush 在类中 AbstractEndPointprotected void needsFillInterest()
throws IOException
needsFillInterest 在类中 AbstractEndPointIOExceptionpublic void setConnection(Connection connection)
setConnection 在接口中 EndPointsetConnection 在类中 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 doShutdownOutput()
doShutdownOutput 在类中 AbstractEndPointpublic boolean isOutputShutdown()
EndPointEndPoint.shutdownOutput()
or EndPoint.close().isOutputShutdown 在接口中 EndPointisOutputShutdown 在类中 AbstractEndPointpublic void doClose()
doClose 在类中 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.isInputShutdown 在接口中 EndPointisInputShutdown 在类中 AbstractEndPointpublic String toString()
toString 在类中 AbstractEndPointCopyright © 2017. All rights reserved.