Index
A B C D E G I M O P Q R S T U
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- AbstractBlockingTaskQueue - Class in org.jbrew.concurrent
-
A
AbstractBlockingTaskQueue
provides a skeletal implementation of theTaskQueue
interface. - AbstractBlockingTaskQueue() - Constructor for class org.jbrew.concurrent.AbstractBlockingTaskQueue
- AbstractTask<T> - Class in org.jbrew.concurrent
-
A
ThreadSafe
implementation ofTask
. - AbstractTask() - Constructor for class org.jbrew.concurrent.AbstractTask
-
Default constructor for
AbstractTask
blocking which assignsAbstractTask.printThreadId
tofalse
and theAbstractTask.name
to theAbstractTask.DEFAULT_NAME
. - AbstractTask(boolean) - Constructor for class org.jbrew.concurrent.AbstractTask
-
A constructor for
AbstractTask
which includes an option to assign theboolean
AbstractTask.printThreadId
's value. - AbstractTask(boolean, String) - Constructor for class org.jbrew.concurrent.AbstractTask
-
A constructor for
AbstractTask
which includes an option to assign theString
AbstractTask.name
's value, as well as theboolean
AbstractTask.printThreadId
's value. - AbstractTask(String) - Constructor for class org.jbrew.concurrent.AbstractTask
-
A constructor for
AbstractTask
which includes an option to assign theString
AbstractTask.name
's value. - accept(T) - Method in class org.jbrew.concurrent.MethodBlockingTask
- accept(T) - Method in class org.jbrew.concurrent.ObjectBlockingTask
-
Sets the value of the
obj
in aThreadSafe
manner. - accept(T) - Method in class org.jbrew.concurrent.RetrievableTask
-
Sets the value of the
obj
in aThreadSafe
manner.
B
- BasicTask - Class in org.jbrew.concurrent
- BasicTask() - Constructor for class org.jbrew.concurrent.BasicTask
- BoundedTaskQueue - Class in org.jbrew.concurrent
-
A
BoundedTaskQueue
is an unordered, bounded implementation of aTaskQueue
. - BoundedTaskQueue(int) - Constructor for class org.jbrew.concurrent.BoundedTaskQueue
C
- compare(Task<?>, Task<?>) - Method in class org.jbrew.concurrent.TaskComparator
D
- dequeue() - Method in class org.jbrew.concurrent.AbstractBlockingTaskQueue
- dequeue() - Method in interface org.jbrew.concurrent.TaskQueue
-
Removes an element from the tail of the queue and returns it.
E
- enqueue(Task<? extends Object>) - Method in class org.jbrew.concurrent.BoundedTaskQueue
- enqueue(Task<? extends Object>) - Method in class org.jbrew.concurrent.UnboundedTaskQueue
- enqueue(T) - Method in interface org.jbrew.concurrent.TaskQueue
-
Adds an element to the head of the queue.
- execute() - Method in class org.jbrew.concurrent.AbstractTask
-
The execute() method allows clients to execute the business logic associated with the respective
Task
. - execute() - Method in class org.jbrew.concurrent.MethodBlockingTask
- execute() - Method in class org.jbrew.concurrent.ObjectBlockingTask
- execute() - Method in class org.jbrew.concurrent.standard.StandardNonRetrievableTask
G
- getCapacity() - Method in class org.jbrew.concurrent.BoundedTaskQueue
- getName() - Method in class org.jbrew.concurrent.AbstractTask
- getName() - Method in interface org.jbrew.concurrent.Task
- getPriority() - Method in class org.jbrew.concurrent.AbstractTask
- getPriority() - Method in interface org.jbrew.concurrent.Task
- getRegistrySize() - Method in class org.jbrew.concurrent.TaskRegister
- getRegistrySize() - Method in interface org.jbrew.concurrent.TaskRegistry
- getThreadId() - Method in class org.jbrew.concurrent.AbstractTask
-
Returns the id
long
of theTask
's current thread. - getThreadId() - Method in interface org.jbrew.concurrent.Task
I
- interruptAll() - Method in class org.jbrew.concurrent.TaskRegister
- interruptAll() - Method in interface org.jbrew.concurrent.TaskRegistry
M
- MethodBlockingTask<T> - Class in org.jbrew.concurrent
-
A
MethodBlockingTask
blocksMethodBlockingTask.retrieve()
until theMethodBlockingTask.execute()
method has fully completed and terminated. - MethodBlockingTask() - Constructor for class org.jbrew.concurrent.MethodBlockingTask
O
- ObjectBlockingTask<T> - Class in org.jbrew.concurrent
-
This implementation of
RetrievableTask
allows for theObjectBlockingTask.obj
to be unblocked as soon as theObjectBlockingTask.accept(Object)
method has been called. - ObjectBlockingTask() - Constructor for class org.jbrew.concurrent.ObjectBlockingTask
- offerTask(Task<?>) - Method in class org.jbrew.concurrent.TaskRegister
- offerTask(Task<?>) - Method in interface org.jbrew.concurrent.TaskRegistry
-
Inserts the specified element into this
TaskRegistry
. - org.jbrew.concurrent - package org.jbrew.concurrent
- org.jbrew.concurrent.serializable - package org.jbrew.concurrent.serializable
- org.jbrew.concurrent.standard - package org.jbrew.concurrent.standard
P
- pollTask() - Method in class org.jbrew.concurrent.TaskRegister
- pollTask() - Method in interface org.jbrew.concurrent.TaskRegistry
- printThreadIdFlag - Variable in class org.jbrew.concurrent.RetrievableTask
Q
- queue - Variable in class org.jbrew.concurrent.AbstractBlockingTaskQueue
R
- removeTask(Task<?>) - Method in class org.jbrew.concurrent.TaskRegister
- removeTask(Task<?>) - Method in interface org.jbrew.concurrent.TaskRegistry
-
Removes a single instance of the specified
Task
from thisTaskRegistry
, if it is present. - RetrievableTask<T> - Class in org.jbrew.concurrent
- RetrievableTask() - Constructor for class org.jbrew.concurrent.RetrievableTask
-
Default constructor for RetrievableTask.
- RetrievableTask(boolean) - Constructor for class org.jbrew.concurrent.RetrievableTask
-
This constructor takes a boolean argument to determine whether the thread number should be printed to the console.
- retrieve() - Method in class org.jbrew.concurrent.MethodBlockingTask
-
Returns the value of the object once the
MethodBlockingTask.execute()
method has returned, as set by theMethodBlockingTask.accept(Object)
method. - retrieve() - Method in class org.jbrew.concurrent.ObjectBlockingTask
-
Returns the value of the object as soon it has been set by the
MethodBlockingTask.accept(Object)
method. - retrieve() - Method in class org.jbrew.concurrent.RetrievableTask
-
Returns the value of the
obj
in aThreadSafe
manner. - run() - Method in class org.jbrew.concurrent.AbstractTask
- run() - Method in class org.jbrew.concurrent.BasicTask
- run() - Method in class org.jbrew.concurrent.MethodBlockingTask
- run() - Method in class org.jbrew.concurrent.ObjectBlockingTask
S
- SerializableTask<T> - Interface in org.jbrew.concurrent.serializable
-
A POJO Serializable implementation of a
Task
. - setName(String) - Method in class org.jbrew.concurrent.AbstractTask
- setName(String) - Method in interface org.jbrew.concurrent.Task
-
Sets the name of the
Task
. - setPriority(int) - Method in class org.jbrew.concurrent.AbstractTask
- setPriority(int) - Method in interface org.jbrew.concurrent.Task
- StandardNonRetrievableTask - Class in org.jbrew.concurrent.standard
-
This is a standard implementation of the BasicTask.
- StandardNonRetrievableTask() - Constructor for class org.jbrew.concurrent.standard.StandardNonRetrievableTask
T
- Task<T> - Interface in org.jbrew.concurrent
-
A concrete Task is an object which has the ability to be wrapped inside of a
Thread
- in the same manner as aRunnable
for multiple thread execution. - TaskComparator - Class in org.jbrew.concurrent
- TaskComparator() - Constructor for class org.jbrew.concurrent.TaskComparator
- TaskQueue<T extends Task<? extends java.lang.Object>> - Interface in org.jbrew.concurrent
-
A TaskQueue is a set of ordered or unordered
Task
s placed into a custom queue which can be operated by producers or consumers in one or moreThread
. - TaskRegister - Class in org.jbrew.concurrent
- TaskRegister() - Constructor for class org.jbrew.concurrent.TaskRegister
- TaskRegistry - Interface in org.jbrew.concurrent
-
A
TaskRegistry
is an interface specifying the requirements for a "register" or collection of Tasks. - ThreadSafe - Annotation Type in org.jbrew.concurrent
-
Thread Safe Annotation
U
- UnboundedTaskQueue - Class in org.jbrew.concurrent
-
A
BoundedTaskQueue
is an unordered, unbounded implementation of aTaskQueue
. - UnboundedTaskQueue() - Constructor for class org.jbrew.concurrent.UnboundedTaskQueue
- UnderDevelopmentInvestigation - Annotation Type in org.jbrew.concurrent
All Classes All Packages