Package org.opendaylight.yangtools.util.concurrent
@Export
package org.opendaylight.yangtools.util.concurrent
Utility classes for dealing with asynchronous and concurrent tasks.
-
ClassDescriptionA
FutureTask
that also implements theListenableFuture
interface similar to guava'sListenableFutureTask
.AnListeningExecutorService
implementation that also allows for anExecutor
to be specified on construction that is used to executeListenableFuture
callback Runnables, registered viaFutures.addCallback(com.google.common.util.concurrent.ListenableFuture<V>, com.google.common.util.concurrent.FutureCallback<? super V>, java.util.concurrent.Executor)
orListenableFuture.addListener(java.lang.Runnable, java.util.concurrent.Executor)
directly, asynchronously when a task that is run on this executor completes.A ThreadPoolExecutor with a specified bounded queue capacity that favors reusing previously constructed threads, when they are available, over creating new threads.A RejectedExecutionHandler that delegates to a backing RejectedExecutionHandler and counts the number of rejected tasks.An implementation of ListeningExecutorService that attempts to detect deadlock scenarios that could occur if clients invoke the returned Future'sget
methods synchronously.ExceptionMapper<X extends Exception>Utility exception mapper which translates an Exception to a specified type of Exception.A ThreadPoolExecutor with a specified bounded queue capacity that favors creating new threads over queuing, as the former is faster.Utility methods for working withFluentFuture
s.Immutable implementation ofThreadFactoryProvider
.Builds instances of typeImmutableThreadFactoryProvider
.Class used by theQueuedNotificationManager
that contains a snapshot of notification queue statistics for a listener.NotificationManager<L,N> Interface for a class that manages queuing and dispatching notifications for multiple listeners.This class manages queuing and dispatching notifications for multiple listeners concurrently.MXBean interface forQueuedNotificationManager
statistic metrics.ReflectiveExceptionMapper<X extends Exception>ConvenienceExceptionMapper
which instantiates specified Exception using reflection.Factory methods for creatingExecutorService
instances with specific configurations.Builder forThreadFactory
.ALinkedBlockingQueue
that tracks the largest queue size for debugging.