public static interface Connection.UpgradeTo
| 限定符和类型 | 方法和说明 |
|---|---|
void |
onUpgradeTo(ByteBuffer prefilled)
Callback method invoked when this connection is upgraded.
|
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 © 2017. All rights reserved.