Package jadex.future
Class DefaultResultListener<E>
java.lang.Object
jadex.future.DefaultResultListener<E>
- All Implemented Interfaces:
IFutureCommandResultListener<E>
,IResultListener<E>
- Direct Known Subclasses:
IntermediateDefaultResultListener
public abstract class DefaultResultListener<E>
extends Object
implements IFutureCommandResultListener<E>
The default listener for logging exceptions as warning.
Is used when exceptions can de ignored.
-
Constructor Summary
ConstructorsConstructorDescriptionCreate a new listener.DefaultResultListener
(Logger logger) Create a new listener. -
Method Summary
Modifier and TypeMethodDescriptionvoid
commandAvailable
(Object command) Called when a command is available.void
exceptionOccurred
(Exception exception) Called when an exception occurred.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface jadex.future.IResultListener
resultAvailable
-
Constructor Details
-
DefaultResultListener
public DefaultResultListener()Create a new listener. -
DefaultResultListener
Create a new listener.- Parameters:
logger
- The logger.
-
-
Method Details
-
exceptionOccurred
Called when an exception occurred.- Specified by:
exceptionOccurred
in interfaceIResultListener<E>
- Parameters:
exception
- The exception.
-
commandAvailable
Called when a command is available.- Specified by:
commandAvailable
in interfaceIFutureCommandResultListener<E>
-