public class ConnectionStateChange
extends java.lang.Object
| Constructor and Description |
|---|
ConnectionStateChange(ConnectionState newState)
Creates a ConnectionStatChange object for situations in which the connection
is new and there is no prior state.
|
ConnectionStateChange(ConnectionState oldState,
ConnectionState newState)
Creates a ConnectionStatChange object for two states, which must be non-null.
|
| Modifier and Type | Method and Description |
|---|---|
ConnectionState |
getNewState() |
java.util.Optional<ConnectionState> |
getOldState() |
boolean |
isConnect() |
boolean |
isDisconnect() |
public ConnectionStateChange(ConnectionState oldState, ConnectionState newState)
public ConnectionStateChange(ConnectionState newState)
public boolean isConnect()
public boolean isDisconnect()
public java.util.Optional<ConnectionState> getOldState()
public ConnectionState getNewState()
Copyright © 2019. All Rights Reserved.