public class EventManager extends Object implements ConnectionStateListener
Constructor and Description |
---|
EventManager(Connection connection) |
Modifier and Type | Method and Description |
---|---|
void |
addEventListener(String id,
EventListener listener) |
boolean |
isConnected() |
void |
removeEventListener(String id,
EventListener listener) |
void |
stateChange(Connection connection,
ConnectionState state,
Throwable error)
Notify a state change
|
public EventManager(Connection connection)
public void stateChange(Connection connection, ConnectionState state, Throwable error)
ConnectionStateListener
stateChange
in interface ConnectionStateListener
connection
- the connection that changedstate
- the new state of the connectionerror
- some error information that lead to the new state (can be null
if it was not an error)public void addEventListener(String id, EventListener listener)
public void removeEventListener(String id, EventListener listener)
public boolean isConnected()
Copyright © 2016 Eclipse NeoSCADA Project. All rights reserved.