@NonNullByDefault
Package org.opendaylight.infrautils.utils.concurrent
General purpose concurrency related utilities.
-
Interface Summary Interface Description ImmutableThreadFactoryProvider.BuildFinal ImmutableThreadFactoryProvider.LoggerBuildStage ImmutableThreadFactoryProvider.NamePrefixBuildStage -
Class Summary Class Description CompletableFutures Utilities forCompletableFuture
.CompletionStages Utilities forCompletionStage
.CompletionStageWrapper<T> CompletionStage
wrapper which hides the implementation (e.g.Executors Additional factory and utility methods for executors.ImmutableThreadFactoryProvider Immutable implementation ofThreadFactoryProvider
.ImmutableThreadFactoryProvider.Builder Builds instances of typeImmutableThreadFactoryProvider
.JdkFutures Utility methods pertaining to the Java 5Future
interface.ListenableFutures More static utility methods pertaining to Guava's ListenableFuture interface.LoggingFutures Utility methods to add completion/failure logging to various kinds of Futures.LoggingThreadUncaughtExceptionHandler Thread's UncaughtExceptionHandler which logs to slf4j.LoggingUncaughtThreadDeathContextRunnable Runnable with finalLoggingUncaughtThreadDeathContextRunnable.run()
method that catches any unexpected checked exceptions (RuntimeException
&Error
) and logs them with some kind of context which allows to better identify the root cause.NamedLocks<T> Manages multiple ReentrantLocks identified by a unique name.NamedSimpleReentrantLock<T> AReentrantLock
which has a name and provides simplified locking operations.NamedSimpleReentrantLock.Acquired Result of a successful lock operation, representing a single lease on the lock.NamedSimpleReentrantLock.AcquireResult Base result of a locking operation.ThreadFactoryProvider Builder forThreadFactory
.