public interface ConnectionStateListener
addConnectionStateListener
method on the Client
to register for notifications.
See the 'Java Developer Guide' for more details on monitoring
connection state.Modifier and Type | Field and Description |
---|---|
static int |
Connected
Constant passed when the client connects.
|
static int |
Disconnected
Constant passed when the client disconnects.
|
static int |
HeartbeatInitiated
Constant passed when the client has begun heartbeat processing with the
server.
|
static int |
LoggedOn
Constant passed when the client completes logon.
|
static int |
PublishReplayed
Constant passed when the client completes replay of messages saved in
its publish store after logon.
|
static int |
Resubscribed
Constant passed when the client has completed resubscribe from
the subscription manager.
|
static int |
Shutdown
Constant passed when the client disconnects and won't reconnect.
|
static int |
UNKNOWN
Constant representing an unknown state.
|
Modifier and Type | Method and Description |
---|---|
void |
connectionStateChanged(int newState_)
Called on an implementation of this interface when the connection state
changes.
|
static final int Disconnected
static final int Shutdown
static final int Connected
static final int LoggedOn
static final int PublishReplayed
static final int HeartbeatInitiated
static final int Resubscribed
static final int UNKNOWN
void connectionStateChanged(int newState_)
newState_
- The connection state change.