com.ibm.carma.transport
Class ConnectionEvent
java.lang.Object
java.util.EventObject
com.ibm.carma.transport.ConnectionEvent
- All Implemented Interfaces:
- java.io.Serializable
public class ConnectionEvent
- extends java.util.EventObject
Event detailing changes in the CARMA connection state. The event surfaces
when the CARMA transport changes connection state between CONNECTED and DISCONNECTED.
- See Also:
- Serialized Form
|
Method Summary |
int |
getState()
Returns the new connection state of the connection |
| Methods inherited from class java.util.EventObject |
getSource, toString |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
COPYRIGHT
public static final java.lang.String COPYRIGHT
- See Also:
- Constant Field Values
CONNECTED
public static final int CONNECTED
- Connection event signal
- See Also:
- Constant Field Values
DISCONNECTED
public static final int DISCONNECTED
- Disconnect event signal
- See Also:
- Constant Field Values
ConnectionEvent
public ConnectionEvent(com.ibm.carma.transport.internal.CARMATransportConnection source,
int state)
- Constructs an exception representing a state change to the provided
connection state on the given event source
- Parameters:
source - the object which issues the ConnectionEventstate - new connection state
getState
public int getState()
- Returns the new connection state of the connection
- Returns:
- The connection state.