Package org.opensearch.common.util.concurrent
package org.opensearch.common.util.concurrent
Base concurrency utilities package.
-
ClassDescriptionA base class for tasks that need to repeat.
AbstractLifecycleRunnable
is a service-lifecycle awareAbstractRunnable
.An extension to runnable.AsyncIOProcessor<Item>This async IO processor allows to batch IO operations and have a single writer processing the write operations.AtomicArray<E>A list backed by anAtomicReferenceArray
with potential null values, easily allowing to get the concrete values as a list usingAtomicArray.asList()
.BaseFuture<V>Base future class.BufferedAsyncIOProcessor<Item>A variant ofAsyncIOProcessor
that allows to batch and buffer processing items at everyBufferedAsyncIOProcessor.getBufferInterval()
in a separate threadpool.A simple thread safe count-down class that in contrast to aCountDownLatch
never blocks.Future utilities.KeyedLock<T>This class manages locks.A future implementation that allows for the result to be passed to listeners waiting for notification.OpenSearch abortion policies.Executors.An extension to thread pool executor, allowing (in the future) to add specific additional stats to it.Listener on shut downA prioritized callable.A prioritizing executor which uses a priority queue as a work queue.A pending threadA base prioritized runnableAn extension to thread pool executor, which automatically adjusts the queue size of theResizableBlockingQueue
according to Little's Law.Releasable lock used inside of Engine implementationsRunnable that can only be run one time.A size based queue wrapping another blocking queue to provide (somewhat relaxed) capacity checks.A ThreadContext is a map of string headers and a transient map of keyed objects that are associated with a thread.A stored contextThis class wraps theThreadContext
operations requiring access inAccessController.doPrivileged(PrivilegedAction)
blocks.The propagator forThreadContext
that helps to carry-over the state from one thread to another (tasks, tracing context, etc).Runnable that is aware of a timeoutThrown when an uncategorized error occurs.A wrapped runnable.Base handler for rejected executions.