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 TypeMethodDescriptionvoidcommandAvailable(Object command) Called when a command is available.voidexceptionOccurred(Exception exception) Called when an exception occurred.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
exceptionOccurredin interfaceIResultListener<E>- Parameters:
exception- The exception.
-
commandAvailable
Called when a command is available.- Specified by:
commandAvailablein interfaceIFutureCommandResultListener<E>
-