Changed Classes and Interfaces |
AbstractFuture
|
An abstract implementation of ListenableFuture, intended for advanced users only. |
AbstractListeningExecutorService
|
Abstract ListeningExecutorService implementation that creates ListenableFuture
instances for each Runnable and Callable submitted to it. |
AsyncFunction
|
Transforms a value, possibly asynchronously. |
CheckedFuture
|
A {@code CheckedFuture} is a ListenableFuture that includes versions
of the {@code get} methods that can throw a checked exception. |
CycleDetectingLockFactory. Policy
|
Encapsulates the action to be taken when a potential deadlock is
encountered. |
FutureCallback
|
A callback for accepting the results of a java.util.concurrent.Future
computation asynchronously. |
FutureFallback
|
Provides a backup {@code Future} to replace an earlier failed {@code Future}. |
Futures
|
Static utility methods pertaining to the Future interface. |
ListenableFuture
|
A Future that accepts completion listeners. |
ListeningExecutorService
|
An ExecutorService that returns ListenableFuture instances. |
ListeningScheduledExecutorService
|
A ScheduledExecutorService that returns ListenableFuture
instances from its {@code ExecutorService} methods. |
Service
|
An object with an operational state, plus asynchronous .startAsync() and
.stopAsync() lifecycle methods to transition between states. |
SettableFuture
|
A ListenableFuture whose result may be set by a .set(Object),
.setException(Throwable) or .setFuture(ListenableFuture) call. |
TimeLimiter
|
Produces proxies that impose a time limit on method
calls to the proxied object. For example, to return the value of
{@code target.someMethod()}, but substitute {@code DEFAULT_VALUE} if this
method call takes over 50 ms, you can use this code:
TimeLimiter limiter = . . .;
TargetType proxy = limiter.newProxy(
target, TargetType.class, 50, TimeUnit.MILLISECONDS);
try {
return proxy.someMethod();
} catch (UncheckedTimeoutException e) {
return DEFAULT_VALUE;
}
|