Package org.jbrew.concurrent
-
Interface Summary Interface Description Task<T> A concrete Task is an object which has the ability to be wrapped inside of aThread
- in the same manner as aRunnable
for multiple thread execution.TaskQueue<T extends Task<? extends java.lang.Object>> A TaskQueue is a set of ordered or unorderedTask
s placed into a custom queue which can be operated by producers or consumers in one or moreThread
.TaskRegistry ATaskRegistry
is an interface specifying the requirements for a "register" or collection of Tasks. -
Class Summary Class Description AbstractBlockingTaskQueue AAbstractBlockingTaskQueue
provides a skeletal implementation of theTaskQueue
interface.AbstractTask<T> This class provides a skeletal, implementation of theTask
interface, to minimize the effort required to implement this interface.BasicTask BoundedTaskQueue ABoundedTaskQueue
is an unordered, bounded implementation of aTaskQueue
.MethodBlockingTask<T> AMethodBlockingTask
blocksMethodBlockingTask.retrieve()
until theMethodBlockingTask.execute()
method has fully completed and terminated.ObjectBlockingTask<T> This implementation ofRetrievableTask
allows for theObjectBlockingTask.obj
to be unblocked as soon as theObjectBlockingTask.accept(Object)
method has been called.RetrievableTask<T> AAbstractTask
that returns a result.TaskComparator TaskRegister UnboundedTaskQueue ABoundedTaskQueue
is an unordered, unbounded implementation of aTaskQueue
. -
Annotation Types Summary Annotation Type Description ThreadSafe Thread Safe AnnotationUnderDevelopmentInvestigation