Uses of Interface
de.aristaflow.adept2.util.threading.executor.ObjectRunnable
Packages that use ObjectRunnable
-
Uses of ObjectRunnable in de.aristaflow.adept2.util.threading.executor
Classes in de.aristaflow.adept2.util.threading.executor that implement ObjectRunnableModifier and TypeClassDescriptionclassAbstractObjectRunnable<O1,O2, R> An abstract implementation for anObjectRunnableincluding some lifecycle management like being active and termination.classA runnable for having exactly one runnable per object.classPipelineRunnable<O,P> A runnable that executes all runnables that are present for a specific object.classA runnable that will enqueue a delayed object runnable as soon as the delay elapsed.Fields in de.aristaflow.adept2.util.threading.executor with type parameters of type ObjectRunnableModifier and TypeFieldDescriptionprotected final Collection<ObjectRunnable<?,O2>> ObjectSpecificFlushCallable.awaitAll pipelines of which the termination needs to be awaited.AbstractObjectRunnable.objectsThe data structures containing all objects and the corresponding work.AbstractObjectSpecificExecutor.objectsAll managed objects, their runnables as well as their runtime data.Methods in de.aristaflow.adept2.util.threading.executor that return ObjectRunnableModifier and TypeMethodDescriptionprotected ObjectRunnable<O,O> AbstractObjectOneWorkExecutor.addRunnable(O registeredObject, O indexObject, Runnable task) protected abstract ObjectRunnable<O1,O2> AbstractObjectSpecificExecutor.addRunnable(O1 registeredObject, O2 indexObject, Runnable task) Adds the designated runnable for the designated object and index object to this executor.protected ObjectRunnable<O,P> AbstractPipeliningExecutor.addRunnable(O registeredObject, P indexObject, Runnable task) protected ObjectRunnable<O,O> ScheduledObjectOneWorkExecutor.addRunnable(O registeredObject, O indexObject, Runnable task) Method parameters in de.aristaflow.adept2.util.threading.executor with type arguments of type ObjectRunnableModifier and TypeMethodDescriptionAbstractObjectOneWorkExecutor.cancelAndFlush(boolean shutdownRequest, Map<O, R> pending, Callable<T> task, Collection<ObjectRunnable<O, O>> objectRunnables) AbstractObjectSpecificExecutor.cancelAndFlush(boolean shutdownRequest, Map<O2, R> pending, Callable<T> task, Collection<ObjectRunnable<O1, O2>> objectRunnables) Cancels the designated pending work (if appropriate), flushes (i.AbstractPipeliningExecutor.cancelAndFlush(boolean shutdownRequest, Map<P, Queue<Runnable>> pending, Callable<T> task, Collection<ObjectRunnable<O, P>> objectRunnables) protected <T> Pair<Future<T>,Map<O, ScheduledObjectOneWorkExecutor.ScheduledRuntimeData>> ScheduledObjectOneWorkExecutor.cancelAndFlush(boolean shutdownRequest, Map<O, ScheduledObjectOneWorkExecutor.ScheduledRuntimeData> pending, Callable<T> task, Collection<ObjectRunnable<O, O>> objectRunnables) protected voidScheduledObjectOneWorkExecutor.enqueueDelayedRunnable(O registeredObject, O indexObject, Pair<ObjectRunnable<O, O>, ScheduledObjectOneWorkExecutor.ScheduledRuntimeData> pair) Removes the delayed runnable from the designated scheduled runtime data for the designated (registered and index) object and adds it as normal pending work.Constructor parameters in de.aristaflow.adept2.util.threading.executor with type arguments of type ObjectRunnableModifierConstructorDescriptionprotectedAbstractObjectRunnable(O1 registeredObject, O2 indexObject, Map<O2, Pair<ObjectRunnable<O1, O2>, R>> objects, AtomicInteger terminate, Logger logger) Creates a new runnable for the designated object.protectedObjectSpecificFlushCallable(Callable<T> task, Collection<ObjectRunnable<?, O2>> await, boolean abortedPending, AbstractObjectSpecificExecutor<?, O2, ?> executor, Logger logger) Creates a new runnable that executes an exclusive tasks without any object work running.protectedPipelineRunnable(O object, P pipelineId, Queue<Runnable> pipeline, Map<P, Pair<ObjectRunnable<O, P>, Queue<Runnable>>> pipelines, AtomicInteger terminate, Logger logger) Creates a new runnable that executes all the work present for a specific object (in a pipeline).