public interface EngineListener
Engine
.
The callback will be invoked on a non-GUI thread, so if the implementation
wants to touch Swing, SwingUtilities.invokeLater(Runnable)
would be needed.
To implement this interface outside this module, extend from EngineListenerAdapter
instead to protect against method additions in the future.
Modifier and Type | Method and Description |
---|---|
void |
error(Throwable t)
Fatal error that's non recoverable.
|
void |
onDisconnect()
Called when a connection is terminated.
|
void |
onReconnect()
Called when a re-connection is about to be attempted.
|
void |
status(String msg)
Status message that indicates the progress of the operation.
|
void |
status(String msg,
Throwable t)
Status message, with additional stack trace that indicates an error that was recovered.
|
void status(String msg)
void status(String msg, Throwable t)
void error(Throwable t)
void onDisconnect()
void onReconnect()
Copyright © 2004–2022. All rights reserved.