O2 - The type of objects with which runnables are managed and executed within the
corresponding executor.T - The return value of this callable which is the return value of the wrapped callable.public class ObjectSpecificFlushCallable<O2,T>
extends java.lang.Object
implements java.util.concurrent.Callable<T>
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
abortedPending
Whether the flush has aborted pending work.
|
protected java.util.Collection<ObjectRunnable<?,O2>> |
await
All pipelines of which the termination needs to be awaited.
|
protected AbstractObjectSpecificExecutor<?,O2,?> |
executor
The executor for restarting the object work.
|
protected java.util.logging.Logger |
logger
The logger which to use for runtime exceptions stemming from executing the task or interrupts
sent when awaiting the termination of the object work.
|
protected java.util.concurrent.Callable<T> |
task
The task to run without any object work running.
|
| Modifier | Constructor and Description |
|---|---|
protected |
ObjectSpecificFlushCallable(java.util.concurrent.Callable<T> task,
java.util.Collection<ObjectRunnable<?,O2>> await,
boolean abortedPending,
AbstractObjectSpecificExecutor<?,O2,?> executor,
java.util.logging.Logger logger)
Creates a new runnable that executes an exclusive tasks without any object work running.
|
| Modifier and Type | Method and Description |
|---|---|
T |
call() |
protected final java.util.concurrent.Callable<T> task
protected final java.util.Collection<ObjectRunnable<?,O2>> await
protected final boolean abortedPending
protected final AbstractObjectSpecificExecutor<?,O2,?> executor
protected final java.util.logging.Logger logger
protected ObjectSpecificFlushCallable(java.util.concurrent.Callable<T> task, java.util.Collection<ObjectRunnable<?,O2>> await, boolean abortedPending, AbstractObjectSpecificExecutor<?,O2,?> executor, java.util.logging.Logger logger)
task - The task to run exclusively.await - All object work for which to await its termination.abortedPending - Whether the flush has aborted pending work.executor - The object-specific pipeline executor to restart the object work after the
exclusive task.logger - The logger which to use for runtime exceptions stemming from executing the task
or interrupts sent when awaiting the termination of the object work.