public class UpgradeConnection extends AbstractConnection
Eventually, upon successful Upgrade request/response, this connection swaps itself out for the WebSocektClientConnection handler.
| Modifier and Type | Class and Description |
|---|---|
class |
UpgradeConnection.SendUpgradeRequest |
AbstractConnection.FillingInterestedCallback, AbstractConnection.NestedState, AbstractConnection.StateConnection.Listener, Connection.UpgradeFrom, Connection.UpgradeToEXECUTE_ONFILLABLE, FILL_INTERESTED, FILLING, FILLING_FILL_INTERESTED, IDLE, REFILLING| Constructor and Description |
|---|
UpgradeConnection(EndPoint endp,
Executor executor,
ConnectPromise connectPromise) |
| Modifier and Type | Method and Description |
|---|---|
void |
disconnect(boolean onlyOutput) |
void |
onClose()
Callback method invoked when this
Connection is closed. |
void |
onFillable()
Callback method invoked when the endpoint is ready to be read.
|
void |
onOpen() |
protected boolean |
onReadTimeout()
Callback method invoked when the endpoint failed to be ready to be read after a timeout
|
addListener, close, failedCallback, fillInterested, fillInterested, getBytesIn, getBytesOut, getCreatedTimeStamp, getEndPoint, getExecutor, getInputBufferSize, getMessagesIn, getMessagesOut, next, onFillInterestedFailed, setInputBufferSize, toStringpublic UpgradeConnection(EndPoint endp, Executor executor, ConnectPromise connectPromise)
public void disconnect(boolean onlyOutput)
public void onFillable()
AbstractConnectionCallback method invoked when the endpoint is ready to be read.
onFillable in class AbstractConnectionAbstractConnection.fillInterested()public void onOpen()
onOpen in interface ConnectiononOpen in class AbstractConnectionpublic void onClose()
ConnectionCallback method invoked when this Connection is closed.
Creators of the connection implementation are responsible for calling this method.
onClose in interface ConnectiononClose in class AbstractConnectionprotected boolean onReadTimeout()
AbstractConnectionCallback method invoked when the endpoint failed to be ready to be read after a timeout
onReadTimeout in class AbstractConnectionCopyright © 1995-2016 Webtide. All Rights Reserved.