public class StateNotifier extends Object
Constructor and Description |
---|
StateNotifier(ExecutorService executor,
Connection connection) |
Modifier and Type | Method and Description |
---|---|
void |
addConnectionStateListener(ConnectionStateListener connectionStateListener) |
void |
dispose() |
protected void |
doFireConnectionStateChange(ConnectionState connectionState,
Throwable error) |
void |
fireConnectionStateChange(ConnectionState connectionState,
Throwable error) |
void |
removeConnectionStateListener(ConnectionStateListener connectionStateListener) |
public StateNotifier(ExecutorService executor, Connection connection)
public void fireConnectionStateChange(ConnectionState connectionState, Throwable error)
protected void doFireConnectionStateChange(ConnectionState connectionState, Throwable error)
public void addConnectionStateListener(ConnectionStateListener connectionStateListener)
public void removeConnectionStateListener(ConnectionStateListener connectionStateListener)
public void dispose()