| Package | Description |
|---|---|
| org.docx4j.com.google.common.cache | |
| org.docx4j.com.google.common.util.concurrent |
| Modifier and Type | Method and Description |
|---|---|
ListenableFuture<V> |
CacheLoader.reload(K key,
V oldValue)
Computes or retrieves a replacement value corresponding to an already-cached
key. |
| Modifier and Type | Interface and Description |
|---|---|
interface |
ListenableScheduledFuture<V>
Helper interface to implement both
ListenableFuture and ScheduledFuture. |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractFuture<V>
An abstract implementation of
ListenableFuture, intended for advanced users only. |
class |
FluentFuture<V>
A
ListenableFuture that supports fluent chains of operations. |
class |
SettableFuture<V>
A
ListenableFuture whose result can be set by a SettableFuture.set(Object), SettableFuture.setException(Throwable) or SettableFuture.setFuture(ListenableFuture) call. |
| Modifier and Type | Method and Description |
|---|---|
ListenableFuture<O> |
AsyncFunction.apply(I input)
Returns an output
Future to use in place of the given input. |
static <V> ListenableFuture<V> |
Futures.immediateFailedFuture(Throwable throwable)
Returns a
ListenableFuture which has an exception set immediately upon construction. |
static <V> ListenableFuture<V> |
Futures.immediateFuture(V value)
Creates a
ListenableFuture which has its value set immediately upon construction. |
<T> ListenableFuture<T> |
AbstractListeningExecutorService.submit(Callable<T> task) |
<T> ListenableFuture<T> |
ListeningExecutorService.submit(Callable<T> task) |
ListenableFuture<?> |
AbstractListeningExecutorService.submit(Runnable task) |
ListenableFuture<?> |
ListeningExecutorService.submit(Runnable task) |
<T> ListenableFuture<T> |
AbstractListeningExecutorService.submit(Runnable task,
T result) |
<T> ListenableFuture<T> |
ListeningExecutorService.submit(Runnable task,
T result) |
static <I,O> ListenableFuture<O> |
Futures.transform(ListenableFuture<I> input,
Function<? super I,? extends O> function,
Executor executor)
Returns a new
Future whose result is derived from the result of the given Future. |
static <V> ListenableFuture<V> |
Futures.withTimeout(ListenableFuture<V> delegate,
long time,
TimeUnit unit,
ScheduledExecutorService scheduledExecutor)
Returns a future that delegates to another but will finish early (via a
TimeoutException wrapped in an ExecutionException) if the specified duration expires. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
SettableFuture.setFuture(ListenableFuture<? extends V> future) |
protected boolean |
AbstractFuture.setFuture(ListenableFuture<? extends V> future)
Sets the result of this
Future to match the supplied input Future once the
supplied Future is done, unless this Future has already been cancelled or set
(including "set asynchronously," defined below). |
static <I,O> ListenableFuture<O> |
Futures.transform(ListenableFuture<I> input,
Function<? super I,? extends O> function,
Executor executor)
Returns a new
Future whose result is derived from the result of the given Future. |
static <V> ListenableFuture<V> |
Futures.withTimeout(ListenableFuture<V> delegate,
long time,
TimeUnit unit,
ScheduledExecutorService scheduledExecutor)
Returns a future that delegates to another but will finish early (via a
TimeoutException wrapped in an ExecutionException) if the specified duration expires. |
Copyright © 2007-2022. All Rights Reserved.