public static interface Connection.UpgradeTo extends Connection
Connection.Listener, Connection.UpgradeFrom, Connection.UpgradeTo
Modifier and Type | Method and Description |
---|---|
void |
onUpgradeTo(ByteBuffer prefilled)
Callback method invoked when this
Connection is upgraded. |
addListener, close, getBytesIn, getBytesOut, getCreatedTimeStamp, getEndPoint, getMessagesIn, getMessagesOut, onClose, onOpen
void onUpgradeTo(ByteBuffer prefilled)
Callback method invoked when this Connection
is upgraded.
This must be called before Connection.onOpen()
.
prefilled
- An optional buffer that can contain prefilled data. Typically this
results from an upgrade of one protocol to the other where the old connection has buffered
data destined for the new connection. The new connection must take ownership of the buffer
and is responsible for returning it to the buffer poolCopyright © 1995-2015 Webtide. All Rights Reserved.