Package org.copperengine.core.batcher
Class NullCallback<T extends BatchCommand<?,T>>
- java.lang.Object
-
- org.copperengine.core.batcher.NullCallback<T>
-
- Type Parameters:
T
- type of the BatchCommand
- All Implemented Interfaces:
CommandCallback<T>
public class NullCallback<T extends BatchCommand<?,T>> extends java.lang.Object implements CommandCallback<T>
Mock implementation of theCommandCallback
interface. Successful command executions are ignored, exceptions are logged.
-
-
Field Summary
Fields Modifier and Type Field Description static NullCallback
instance
-
Constructor Summary
Constructors Constructor Description NullCallback()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
commandCompleted()
Called when a batch command is successfully executedstatic <X extends BatchCommand<?,X>>
CommandCallback<X>get()
void
unhandledException(java.lang.Exception e)
Called when a batch command failed
-
-
-
Field Detail
-
instance
public static final NullCallback instance
-
-
Method Detail
-
commandCompleted
public void commandCompleted()
Description copied from interface:CommandCallback
Called when a batch command is successfully executed- Specified by:
commandCompleted
in interfaceCommandCallback<T extends BatchCommand<?,T>>
-
get
public static <X extends BatchCommand<?,X>> CommandCallback<X> get()
-
unhandledException
public void unhandledException(java.lang.Exception e)
Description copied from interface:CommandCallback
Called when a batch command failed- Specified by:
unhandledException
in interfaceCommandCallback<T extends BatchCommand<?,T>>
- Parameters:
e
- the exception
-
-