public static interface ClientEngine.ClientUpgradeInfo
Provides information about upgrade process. There are three possible states which can be reported:
ClientEngine.ClientUpgradeStatus.ANOTHER_UPGRADE_REQUEST_REQUIREDClientEngine.ClientUpgradeStatus.UPGRADE_REQUEST_FAILEDClientEngine.ClientUpgradeStatus.SUCCESS
 When getUpgradeStatus() returns ClientEngine.ClientUpgradeStatus.SUCCESS, client container can create
 Connection and start processing read events from the underlying connection and report them to Tyrus
 runtime.
 
 When getUpgradeStatus() returns ClientEngine.ClientUpgradeStatus.UPGRADE_REQUEST_FAILED, client container
 HAS TO close all resources related to currently processed UpgradeResponse.
 
 When getUpgradeStatus() returns ClientEngine.ClientUpgradeStatus.ANOTHER_UPGRADE_REQUEST_REQUIRED, client
 container HAS TO close all resources related to currently processed UpgradeResponse, open new TCP
 connection and send UpgradeRequest obtained from method ClientEngine.createUpgradeRequest(TimeoutHandler).
| Modifier and Type | Method and Description | 
|---|---|
| Connection | createConnection() | 
| ClientEngine.ClientUpgradeStatus | getUpgradeStatus() | 
ClientEngine.ClientUpgradeStatus getUpgradeStatus()
ClientEngine.ClientUpgradeStatus.Connection createConnection()
Connection instance or null, when getUpgradeStatus() does not return
 ClientEngine.ClientUpgradeStatus.Copyright © 2012–2020 Oracle Corporation. All rights reserved.