public abstract class NegotiatingClientConnection extends AbstractConnection
Connection.Listener, Connection.UpgradeFrom, Connection.UpgradeTo| 限定符 | 构造器和说明 |
|---|---|
protected |
NegotiatingClientConnection(EndPoint endp,
Executor executor,
SSLEngine sslEngine,
ClientConnectionFactory connectionFactory,
Map<String,Object> context) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close()
Performs a logical close of this connection.
|
protected void |
completed() |
protected SSLEngine |
getSSLEngine() |
void |
onFillable()
Callback method invoked when the endpoint is ready to be read.
|
void |
onOpen()
Callback method invoked when this connection is opened.
|
addListener, failedCallback, fillInterested, getBytesIn, getBytesOut, getCreatedTimeStamp, getEndPoint, getExecutor, getInputBufferSize, getMessagesIn, getMessagesOut, isFillInterested, onClose, onFillInterestedFailed, onIdleExpired, onReadTimeout, removeListener, setInputBufferSize, toConnectionString, toString, tryFillInterested, tryFillInterestedprotected SSLEngine getSSLEngine()
protected void completed()
public void onOpen()
ConnectionCallback method invoked when this connection is opened.
Creators of the connection implementation are responsible for calling this method.
onOpen 在接口中 ConnectiononOpen 在类中 AbstractConnectionpublic void onFillable()
AbstractConnectionCallback method invoked when the endpoint is ready to be read.
onFillable 在类中 AbstractConnectionAbstractConnection.fillInterested()public void close()
ConnectionPerforms a logical close of this connection.
For simple connections, this may just mean to delegate the close to the associated
EndPoint but, for example, SSL connections should write the SSL close message
before closing the associated EndPoint.
close 在接口中 Closeableclose 在接口中 AutoCloseableclose 在接口中 Connectionclose 在类中 AbstractConnectionCopyright © 2017. All rights reserved.