public class ErrorTask<T extends ExecutionContext>
extends java.lang.Object
implements java.lang.Runnable
Constructor and Description |
---|
ErrorTask(MessageQueue<T> messageQueue,
java.util.function.Consumer<java.lang.Throwable> errorCallback)
Construct a new ErrorTask that will utilize the given MessageQueue.
|
Modifier and Type | Method and Description |
---|---|
void |
run() |
public ErrorTask(MessageQueue<T> messageQueue, java.util.function.Consumer<java.lang.Throwable> errorCallback)
messageQueue
- The MessageQueue.errorCallback
- A Consumable to be called when an error is encountered.