private class OptionalSslConnectionFactory.OptionalSslConnection extends AbstractConnection implements Connection.UpgradeFrom
Connection.Listener, Connection.UpgradeFrom, Connection.UpgradeTo| Modifier and Type | Field and Description |
|---|---|
private java.nio.ByteBuffer |
buffer |
private Connector |
connector |
| Constructor and Description |
|---|
OptionalSslConnection(EndPoint endPoint,
Connector connector) |
| Modifier and Type | Method and Description |
|---|---|
void |
onFillable()
Callback method invoked when the endpoint is ready to be read.
|
void |
onOpen()
Callback method invoked when this connection is opened.
|
java.nio.ByteBuffer |
onUpgradeFrom()
Takes the input buffer from the connection on upgrade.
|
private void |
upgrade(java.nio.ByteBuffer buffer) |
addListener, close, failedCallback, fillInterested, getBytesIn, getBytesOut, getCreatedTimeStamp, getEndPoint, getExecutor, getInputBufferSize, getMessagesIn, getMessagesOut, isFillInterested, onClose, onFillInterestedFailed, onIdleExpired, onReadTimeout, removeListener, setInputBufferSize, toConnectionString, toString, tryFillInterested, tryFillInterestedprivate final Connector connector
private final java.nio.ByteBuffer buffer
public void onOpen()
ConnectionCallback method invoked when this connection is opened.
Creators of the connection implementation are responsible for calling this method.
onOpen in interface ConnectiononOpen in class AbstractConnectionpublic void onFillable()
AbstractConnectionCallback method invoked when the endpoint is ready to be read.
onFillable in class AbstractConnectionAbstractConnection.fillInterested()public java.nio.ByteBuffer onUpgradeFrom()
Connection.UpgradeFromTakes the input buffer from the connection on upgrade.
This method is used to take any unconsumed input from a connection during an upgrade.
onUpgradeFrom in interface Connection.UpgradeFromprivate void upgrade(java.nio.ByteBuffer buffer)