Package com.ultikits.ultitools.utils
Interface AgentConnection.Listener
- All Known Implementing Classes:
CloudSession.SessionAgentListener
- Enclosing class:
AgentConnection
static interface AgentConnection.Listener
Callbacks to the owner (the cloud session). Never invoked while this monitor is held.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidonCredentialRejected(int statusOrCloseCode, String requestIdOrNull) default voidonOpened()The upgrade was accepted.default voidonPlanLimited(UpgradeRejection notice) default voidThewelcomenamed another server id; retrying stopped, credential kept.default voiddefault voidToo many consecutive supersessions; retrying stopped, credential kept.default voiddefault voidonUpgradeRequired(String minFrameworkOrNull, String requestIdOrNull)
-
Method Details
-
onStateChanged
- Parameters:
state- the new state, once per real transition
-
onCredentialRejected
- Parameters:
statusOrCloseCode- 401 or 4401requestIdOrNull- the refused response's request id
-
onUpgradeRequired
- Parameters:
minFrameworkOrNull- the minimum framework the gateway accepts, sanitisedrequestIdOrNull- the refused response's request id
-
onSuperseded
default void onSuperseded()Too many consecutive supersessions; retrying stopped, credential kept. -
onServerIdMismatch
default void onServerIdMismatch()Thewelcomenamed another server id; retrying stopped, credential kept. -
onPlanLimited
- Parameters:
notice- the first 402 response of a plan-limit episode; once per episode
-
onOpened
default void onOpened()The upgrade was accepted. -
onText
- Parameters:
text- an inbound text frame other than the heartbeat reply
-