public class EngineListenerSplitter extends Object implements EngineListener
EngineListener that distributes callbacks.| Modifier and Type | Field and Description |
|---|---|
protected List<EngineListener> |
listeners |
| Constructor and Description |
|---|
EngineListenerSplitter() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(EngineListener el) |
void |
error(Throwable t)
Fatal error that's non recoverable.
|
void |
onDisconnect()
Called when a connection is terminated.
|
void |
remove(EngineListener el) |
void |
status(String msg)
Status message that indicates the progress of the operation.
|
void |
status(String msg,
Throwable t)
Status message, with additoinal stack trace that indicates an error that was recovered.
|
protected final List<EngineListener> listeners
public void add(EngineListener el)
public void remove(EngineListener el)
public void status(String msg)
EngineListenerstatus in interface EngineListenerpublic void status(String msg, Throwable t)
EngineListenerstatus in interface EngineListenerpublic void error(Throwable t)
EngineListenererror in interface EngineListenerpublic void onDisconnect()
EngineListeneronDisconnect in interface EngineListenerCopyright © 2004-2014. All Rights Reserved.