Uses of Interface
org.jbrew.concurrent.Task
Package | Description |
---|---|
org.jbrew.concurrent | |
org.jbrew.concurrent.serializable | |
org.jbrew.concurrent.standard |
-
Uses of Task in org.jbrew.concurrent
Classes in org.jbrew.concurrent with type parameters of type Task Modifier and Type Interface Description interface
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
.Classes in org.jbrew.concurrent that implement Task Modifier and Type Class Description class
AbstractTask<T>
This class provides a skeletal, implementation of theTask
interface, to minimize the effort required to implement this interface.class
BasicTask
class
MethodBlockingTask<T>
AMethodBlockingTask
blocksMethodBlockingTask.retrieve()
until theMethodBlockingTask.execute()
method has fully completed and terminated.class
ObjectBlockingTask<T>
This implementation ofRetrievableTask
allows for theObjectBlockingTask.obj
to be unblocked as soon as theObjectBlockingTask.accept(Object)
method has been called.class
RetrievableTask<T>
AAbstractTask
that returns a result.Fields in org.jbrew.concurrent with type parameters of type Task Modifier and Type Field Description protected java.util.Queue<Task<? extends java.lang.Object>>
AbstractBlockingTaskQueue. queue
Methods in org.jbrew.concurrent that return Task Modifier and Type Method Description Task<? extends java.lang.Object>
AbstractBlockingTaskQueue. dequeue()
Task<?>
TaskRegister. pollTask()
Task<?>
TaskRegistry. pollTask()
Methods in org.jbrew.concurrent with parameters of type Task Modifier and Type Method Description int
TaskComparator. compare(Task<?> o1, Task<?> o2)
void
BoundedTaskQueue. enqueue(Task<? extends java.lang.Object> task)
void
UnboundedTaskQueue. enqueue(Task<? extends java.lang.Object> task)
void
TaskRegister. offer(Task<?> task)
void
TaskRegister. offer(Task<?>... tasks)
Inserts the specified element into thisTaskRegistry
.void
TaskRegistry. offer(Task<?> task)
Inserts the specified element into thisTaskRegistry
.void
TaskRegistry. offer(Task<?>... tasks)
Inserts the specified element into thisTaskRegistry
.boolean
TaskRegister. remove(Task<?> task)
boolean
TaskRegistry. remove(Task<?> task)
Removes a single instance of the specifiedTask
from thisTaskRegistry
, if it is present. -
Uses of Task in org.jbrew.concurrent.serializable
Subinterfaces of Task in org.jbrew.concurrent.serializable Modifier and Type Interface Description interface
SerializableTask<T>
A POJO Serializable implementation of aTask
. -
Uses of Task in org.jbrew.concurrent.standard
Classes in org.jbrew.concurrent.standard that implement Task Modifier and Type Class Description class
StandardNonRetrievableTask
This is a standard implementation of the BasicTask.