Index

A B C D E G I M O P Q R S T U 
All Classes All Packages

A

AbstractBlockingTaskQueue - Class in org.jbrew.concurrent
A AbstractBlockingTaskQueue provides a skeletal implementation of the TaskQueue interface.
AbstractBlockingTaskQueue() - Constructor for class org.jbrew.concurrent.AbstractBlockingTaskQueue
 
AbstractTask<T> - Class in org.jbrew.concurrent
This class provides a skeletal, implementation of the Task interface, to minimize the effort required to implement this interface.
AbstractTask() - Constructor for class org.jbrew.concurrent.AbstractTask
Default constructor for AbstractTaskblocking which assigns AbstractTask.printThreadId to false and the AbstractTask.name to the AbstractTask.DEFAULT_NAME.
AbstractTask(boolean) - Constructor for class org.jbrew.concurrent.AbstractTask
A constructor for AbstractTask which includes an option to assign the boolean AbstractTask.printThreadId's value.
AbstractTask(boolean, String) - Constructor for class org.jbrew.concurrent.AbstractTask
A constructor for AbstractTask which includes an option to assign the String AbstractTask.name's value, as well as the boolean AbstractTask.printThreadId's value.
AbstractTask(String) - Constructor for class org.jbrew.concurrent.AbstractTask
A constructor for AbstractTask which includes an option to assign the String 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 a ThreadSafe manner.
accept(T) - Method in class org.jbrew.concurrent.RetrievableTask
Sets the value of the obj in a ThreadSafe manner.

B

BasicTask - Class in org.jbrew.concurrent
A BasicTask object is an abstract implementor of Task allowing for the object to be wrapped inside of a Thread and executed concurrently.
BasicTask() - Constructor for class org.jbrew.concurrent.BasicTask
 
BoundedTaskQueue - Class in org.jbrew.concurrent
A BoundedTaskQueue is an unordered, bounded implementation of a TaskQueue.
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
Returns the size of the TaskRegistry, represented as a signed 8, 16, or 32 bit integer.
getRegistrySize() - Method in interface org.jbrew.concurrent.TaskRegistry
 
getThreadId() - Method in class org.jbrew.concurrent.AbstractTask
Returns the id long of the Task's current thread.
getThreadId() - Method in interface org.jbrew.concurrent.Task
 

I

interruptAll() - Method in class org.jbrew.concurrent.TaskRegister
interuptAll() implementation is the subject of (#79), and as such MAY be addressed prior to release of v0.1.0.
interruptAll() - Method in interface org.jbrew.concurrent.TaskRegistry
 

M

MethodBlockingTask<T> - Class in org.jbrew.concurrent
A MethodBlockingTask blocks MethodBlockingTask.retrieve() until the MethodBlockingTask.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 the ObjectBlockingTask.obj to be unblocked as soon as the ObjectBlockingTask.accept(Object) method has been called.
ObjectBlockingTask() - Constructor for class org.jbrew.concurrent.ObjectBlockingTask
 
offer(Task<?>) - Method in class org.jbrew.concurrent.TaskRegister
 
offer(Task<?>) - Method in interface org.jbrew.concurrent.TaskRegistry
Inserts the specified element into this TaskRegistry.
offer(Task<?>...) - Method in class org.jbrew.concurrent.TaskRegister
Inserts the specified element into this TaskRegistry.
offer(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

remove(Task<?>) - Method in class org.jbrew.concurrent.TaskRegister
 
remove(Task<?>) - Method in interface org.jbrew.concurrent.TaskRegistry
Removes a single instance of the specified Task from this TaskRegistry, if it is present.
RetrievableTask<T> - Class in org.jbrew.concurrent
A AbstractTask that returns a result.
RetrievableTask() - Constructor for class org.jbrew.concurrent.RetrievableTask
The default, noargs 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 the MethodBlockingTask.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 a ThreadSafe 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 a Runnable 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 Tasks placed into a custom queue which can be operated by producers or consumers in one or more Thread.
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 a TaskQueue.
UnboundedTaskQueue() - Constructor for class org.jbrew.concurrent.UnboundedTaskQueue
 
UnderDevelopmentInvestigation - Annotation Type in org.jbrew.concurrent
 
A B C D E G I M O P Q R S T U 
All Classes All Packages