saker.util Documentation TaskDoc JavaDoc Packages
package saker.util.thread
Package containing utilities for thread manipulation and related classes.
Interfaces
BooleanLatch
A single-fire boolean latch synchronization interface.
OperationCancelMonitor in ThreadUtils
Interface provided to task runner implementation which can signal cancellation of the operation.
ThreadWorkPool in ThreadUtils
Interface for a thread pool that is capable of executing tasks offered to it.
ThrowingConsumer in ThreadUtils
Functional interface similar to Consumer, but is capable of throwing an arbitrary exception.
ThrowingContextConsumer in ThreadUtils
Functional interface similar to ThrowingConsumer that can take an another context argument for its execution.
Classes
ExceptionThread
Thread subclass that is capable of running ThrowingRunnables and store any thrown exceptions to retrieve later.
ParallelRunner in ThreadUtils
Builder class for executing various tasks with the specified configuration concurrently.
ThreadUtils
Utility class containing functions and classes related to threads and their manipulation.
Exceptions
ParallelExecutionAbortedException
Exception thrown by multi-threadedly run tasks to abort any further task running.
ParallelExecutionCancelledException
Exception representing that the task running has been cancelled by an external source.
ParallelExecutionException
Superclass for exceptions representing that an exception occurred when tasks are executed in a multi-threaded way.
ParallelExecutionFailedException
Exception thrown by task runners when a task failed to successfully complete, i.e.