Interface ClientEngine.ClientUpgradeInfo
-
- Enclosing interface:
- ClientEngine
public static interface ClientEngine.ClientUpgradeInfo
Upgrade process result.Provides information about upgrade process. There are three possible states which can be reported:
ClientEngine.ClientUpgradeStatus.ANOTHER_UPGRADE_REQUEST_REQUIRED
ClientEngine.ClientUpgradeStatus.UPGRADE_REQUEST_FAILED
ClientEngine.ClientUpgradeStatus.SUCCESS
When
getUpgradeStatus()
returnsClientEngine.ClientUpgradeStatus.SUCCESS
, client container can createConnection
and start processing read events from the underlying connection and report them to Tyrus runtime.When
getUpgradeStatus()
returnsClientEngine.ClientUpgradeStatus.UPGRADE_REQUEST_FAILED
, client container HAS TO close all resources related to currently processedUpgradeResponse
.When
getUpgradeStatus()
returnsClientEngine.ClientUpgradeStatus.ANOTHER_UPGRADE_REQUEST_REQUIRED
, client container HAS TO close all resources related to currently processedUpgradeResponse
, open new TCP connection and sendUpgradeRequest
obtained from methodClientEngine.createUpgradeRequest(TimeoutHandler)
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Connection
createConnection()
ClientEngine.ClientUpgradeStatus
getUpgradeStatus()
-
-
-
Method Detail
-
getUpgradeStatus
ClientEngine.ClientUpgradeStatus getUpgradeStatus()
- Returns:
ClientEngine.ClientUpgradeStatus
.
-
createConnection
Connection createConnection()
- Returns:
- new
Connection
instance ornull
, whengetUpgradeStatus()
does not returnClientEngine.ClientUpgradeStatus
.
-
-