| Interface | Description |
|---|---|
| AsyncCompleter.ExecutorCompletionServiceFactory |
Extension point if a custom CompletionService is required, for instance to
implement a custom concellation policy.
|
| Awaitable |
Something that can be awaited upon.
|
| ConcurrentOperationMap<K,R> |
This will allow you to submit an operation, encapsulated by a
Callable, and keyed by an Object <K>,
such that the result of the Callable will be available to any concurrent
callers with the same Object key. |
| ExceptionPolicy |
Represents an exception handling policy.
|
| ExecutorSubmitter |
Adds the
ExecutorService job submission methods
without exposing the life-cycle management API. |
| ManagedLock |
ManagedLock allows callables, runnables and suppliers to be
run under a lock that is resolved against an input object. |
| ManagedLock.ReadWrite |
Maintains two managed locks that internally use the same
read/write locks |
| Promise<A> |
A promise that presents a nicer interface to
Future. |
| Promise.TryConsumer<A> |
Consumer interface to be called after a promise is fulfilled with a
succesful value or a failure.
|
| Promises.Callback<A> |
A callback that can be completed with a successful value or a failed
exception.
|
| Promises.SettablePromise<A> |
A promise that can be completed with a successful value or a failed
exception.
|
| ReusableLatch |
A Latch that may be reused, unlike a
CountDownLatch. |
| Sink<T> |
Consume the object a
Supplier produces. |
| Timeout.TimeSupplier |
Supply time and precision to a
Timeout. |
| Class | Description |
|---|---|
| AsyncCompleter |
Convenient encapsulation of
CompletionService
usage that allows a collection of jobs to be issued to an
Executor and return an
Iterable of the results that is in the order that the
results return. |
| AsyncCompleter.Builder |
For creating instances of
AsyncCompleter. |
| BlockingReference<V> |
A Reference with queue semantics where the current reference may be retrieved
or taken instead, and if there is no current element then it will be block
until the reference becomes available.
|
| BooleanLatch |
A
BooleanLatch is a reusable latch that
resets after it is released and waited on. |
| CompletionStages |
Helper methods for working with completion stages
|
| ConcurrentOperationMapImpl<K,R> | |
| CopyOnWriteMap<K,V> | |
| CopyOnWriteMap.Builder<K,V> |
Build a
CopyOnWriteMap and specify all the options. |
| CopyOnWriteSortedMap<K,V> | |
| CopyOnWriteSortedMap.Builder<K,V> |
Build a
CopyOnWriteSortedMap and specify all the options. |
| Executors |
Executors utility class.
|
| Functions | |
| Lazy |
Factory for creating lazily populated references.
|
| LazyReference<T> |
Lazily loaded reference that is not constructed until required.
|
| ManagedLocks |
Static factory for producing
ManagedLock
and ManagedLock.ReadWrite instances. |
| Memory |
Value representing an amount of Memory, as measured in
memory
units. |
| PhasedLatch |
A
PhasedLatch is a shared latch that
resets after it is released and can be reused. |
| Promises | |
| ResettableLazyReference<T> |
Lazily loaded reference that is not constructed until required.
|
| SettableFuture<T> |
SettableFuture is a
Future implementation where the responsibility
for producing the result is external to the future instance, unlike
FutureTask where the future holds the operation
(a Callable or Runnable
instance) and the first thread that calls
FutureTask.run() executes the operation. |
| Suppliers |
Useful
Supplier implementations. |
| ThreadFactories |
Factory for creating
ThreadFactory instances. |
| ThreadFactories.Builder |
Simple builder for
ThreadFactory instances |
| Timeout |
Automatically calculates elapsed time from when it is created.
|
| Enum | Description |
|---|---|
| ExceptionPolicy.Policies |
Default exception handling policies
|
| Memory.MemoryComparator |
Comparator for
units. |
| Memory.Unit |
Units in which memory is expressed.
|
| Memory.UnitComparator |
Comparator for
units. |
| ThreadFactories.Type |
| Exception | Description |
|---|---|
| LazyReference.InitializationException |
If the factory
LazyReference.create() method threw an exception,
this wraps it. |
| RuntimeExecutionException |
Convenience class for re-throwing
ExecutionException. |
| RuntimeInterruptedException |
Convenience class for re-throwing
InterruptedException. |
| RuntimeTimeoutException |
Convenience class for re-throwing
TimeoutException as an unchecked exception. |
| TimedOutException |
Convenience exception that takes a time and a unit and produces a meaningful
error message.
|
Copyright © 2016 Atlassian. All rights reserved.