public class HandlerState extends Object
Handler, reported to
HandlerStateListener on every transition.
The handler moves between these states only along the following edges:
NOT_INITED -> DISCONNECTED DISCONNECTED -> NOT_INITED | CONNECTING CONNECTING -> CONNECTED | DISCONNECTED CONNECTED -> DISCONNECTING | DISCONNECTED DISCONNECTING -> DISCONNECTED
DISCONNECTING is published whenever an established session is being torn down - after a
disconnect(), and equally after a connection loss, whether or not a graceful logout was
possible. The CONNECTED to DISCONNECTED edge exists for completeness and is not
taken when a live session ends; a connect attempt that never established one settles from
CONNECTING instead.
Instances are singletons and may be compared with ==.
| Modifier and Type | Field and Description |
|---|---|
static HandlerState |
CONNECTED |
static HandlerState |
CONNECTING |
static HandlerState |
DISCONNECTED |
static HandlerState |
DISCONNECTING |
static HandlerState |
NOT_INITED |
protected HandlerState[] |
transitions |
public static final HandlerState NOT_INITED
public static final HandlerState DISCONNECTED
public static final HandlerState CONNECTED
public static final HandlerState DISCONNECTING
public static final HandlerState CONNECTING
protected HandlerState[] transitions
Copyright © 2012–2026 Onix Solutions. All rights reserved.