| Package | Description |
|---|---|
| io.atlassian.util.concurrent |
| Class and 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. |
| 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.
|
| BlockingReference
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.
|
| ConcurrentOperationMap
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. |
| CopyOnWriteMap |
| CopyOnWriteMap.Builder
Build a
CopyOnWriteMap and specify all the options. |
| CopyOnWriteSortedMap |
| CopyOnWriteSortedMap.Builder
Build a
CopyOnWriteSortedMap and specify all the options. |
| ExceptionPolicy
Represents an exception handling policy.
|
| ExceptionPolicy.Policies
Default exception handling policies
|
| ExecutorSubmitter
Adds the
ExecutorService job submission methods
without exposing the life-cycle management API. |
| LazyReference
Lazily loaded reference that is not constructed until required.
|
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 |
| Memory
Value representing an amount of Memory, as measured in
memory
units. |
| Memory.MemoryComparator
Comparator for
units. |
| Memory.Unit
Units in which memory is expressed.
|
| Memory.UnitComparator
Comparator for
units. |
| Promise
A promise that presents a nicer interface to
Future. |
| Promise.TryConsumer
Consumer interface to be called after a promise is fulfilled with a
succesful value or a failure.
|
| Promises.Callback
A callback that can be completed with a successful value or a failed
exception.
|
| Promises.SettablePromise
A promise that can be completed with a successful value or a failed
exception.
|
| ResettableLazyReference
Lazily loaded reference that is not constructed until required.
|
| ReusableLatch
A Latch that may be reused, unlike a
CountDownLatch. |
| RuntimeTimeoutException
Convenience class for re-throwing
TimeoutException as an unchecked exception. |
SettableFuture
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. |
| ThreadFactories.Builder
Simple builder for
ThreadFactory instances |
| ThreadFactories.Type |
| TimedOutException
Convenience exception that takes a time and a unit and produces a meaningful
error message.
|
| Timeout
Automatically calculates elapsed time from when it is created.
|
| Timeout.TimeSupplier
Supply time and precision to a
Timeout. |
Copyright © 2024 Atlassian. All rights reserved.