Index
A B E G M O P R S T
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- 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
- BlockingTask<T> - Class in org.jbrew.concurrent
-
A
ThreadSafe
implementation ofTask
. - BlockingTask() - Constructor for class org.jbrew.concurrent.BlockingTask
-
Default constructor for
BlockingTask
blocking which assignsBlockingTask.printThreadId
tofalse
and theBlockingTask.name
to theBlockingTask.DEFAULT_NAME
. - BlockingTask(boolean) - Constructor for class org.jbrew.concurrent.BlockingTask
-
A constructor for
BlockingTask
which includes an option to assign theboolean
BlockingTask.printThreadId
's value. - BlockingTask(boolean, String) - Constructor for class org.jbrew.concurrent.BlockingTask
-
A constructor for
BlockingTask
which includes an option to assign theString
BlockingTask.name
's value, as well as theboolean
BlockingTask.printThreadId
's value. - BlockingTask(String) - Constructor for class org.jbrew.concurrent.BlockingTask
-
A constructor for
BlockingTask
which includes an option to assign theString
BlockingTask.name
's value.
E
- execute() - Method in class org.jbrew.concurrent.BlockingTask
-
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
- getName() - Method in class org.jbrew.concurrent.BlockingTask
- getName() - Method in interface org.jbrew.concurrent.Task
- getThreadId() - Method in class org.jbrew.concurrent.BlockingTask
-
Returns the id
long
of theTask
's current thread. - getThreadId() - Method in interface org.jbrew.concurrent.Task
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
- 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
- printThreadIdFlag - Variable in class org.jbrew.concurrent.RetrievableTask
R
- 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.BlockingTask
- run() - Method in class org.jbrew.concurrent.MethodBlockingTask
- run() - Method in class org.jbrew.concurrent.ObjectBlockingTask
- run() - Method in class org.jbrew.concurrent.StandardTask
S
- SerializableTask<T> - Interface in org.jbrew.concurrent.serializable
-
A POJO Serializable implementation of a
Task
. - setName(String) - Method in class org.jbrew.concurrent.BlockingTask
- setName(String) - Method in interface org.jbrew.concurrent.Task
-
Sets the name of the
Task
. - StandardNonRetrievableTask - Class in org.jbrew.concurrent.standard
-
This is a standard implementation of the StandardTask.
- StandardNonRetrievableTask() - Constructor for class org.jbrew.concurrent.standard.StandardNonRetrievableTask
- StandardTask - Class in org.jbrew.concurrent
-
A
StandardTask
object is an abstract implementor ofTask
allowing for the object to be wrapped inside of aThread
and executed concurrently. - StandardTask() - Constructor for class org.jbrew.concurrent.StandardTask
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. - ThreadSafe - Annotation Type in org.jbrew.concurrent
-
Thread Safe Annotation
All Classes All Packages