public static class ClientConnectionFactory.Helper extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
replaceConnection(Connection oldConnection,
Connection newConnection)
Replaces the given
oldConnection with the given newConnection on the
EndPoint associated with oldConnection, performing connection lifecycle management. |
public static void replaceConnection(Connection oldConnection, Connection newConnection)
oldConnection with the given newConnection on the
EndPoint associated with oldConnection, performing connection lifecycle management.
The oldConnection will be closed by invoking Connection.onClose()
and the newConnection will be opened by invoking Connection.onOpen().oldConnection - the old connection to replacenewConnection - the new connection replacementCopyright © 1995-2015 Webtide. All Rights Reserved.