AbstractBlockingTaskQueue
provides a skeletal implementation of the TaskQueue
interface.Task
interface,
to minimize the effort required to implement this interface.AbstractTask
blocking which assigns
AbstractTask.printThreadId
to false
and the
AbstractTask.name
to the AbstractTask.DEFAULT_NAME
.AbstractTask
which includes an option to assign the
boolean
AbstractTask.printThreadId
's value.AbstractTask
which includes an option to assign the
String
AbstractTask.name
's value.AbstractTask
which includes an option to assign the
String
AbstractTask.name
's value, as well as the
boolean
AbstractTask.printThreadId
's value.obj
in a ThreadSafe
manner.obj
in a ThreadSafe
manner.BoundedTaskQueue
is an unordered, bounded implementation of a AbstractBlockingTaskQueue
.Task
.TaskRegistry
, represented as a signed 8, 16, or 32 bit integer.long
of the Task
's current thread.MethodBlockingTask
blocks MethodBlockingTask.retrieve()
until the MethodBlockingTask.execute()
method has fully completed and terminated.RetrievableTask
allows for the obj
to
be unblocked as soon as the ObjectBlockingTask.accept(Object)
method has been
called.TaskRegistry
.TaskRegistry
.TaskRegistry
.Task
from this TaskRegistry
,
if it is present.AbstractTask
that returns a result.MethodBlockingTask.execute()
method has returned,
as set by the MethodBlockingTask.accept(Object)
method.MethodBlockingTask.accept(Object)
method.obj
in a ThreadSafe
manner.Task
.Task
.TaskComparator
class performs priority-sensitive Task
comparison.TaskRegistry
is an interface specifying the requirements for a "register" or collection of
Tasks.BoundedTaskQueue
is an unordered, unbounded implementation of a TaskQueue
.Copyright © 2020. All rights reserved.