public class MoreFutures extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
MoreFutures.DoRollup |
static interface |
MoreFutures.DoWithResults |
| Modifier and Type | Method and Description |
|---|---|
static <V> com.google.common.util.concurrent.ListenableFuture<V> |
onFailure(com.google.common.util.concurrent.ListenableFuture<V> future,
Runnable onFailure) |
static <V> com.google.common.util.concurrent.ListenableFuture<V> |
onSuccessAndFailure(com.google.common.util.concurrent.ListenableFuture<V> future,
Runnable onSuccess,
Runnable onFailure) |
static com.google.common.util.concurrent.ListenableFuture<?> |
rollupAsync(Collection<com.google.common.util.concurrent.ListenableFuture<com.datastax.driver.core.ResultSet>> futures,
Executor asyncExecutor,
MoreFutures.DoRollup function) |
static com.google.common.util.concurrent.ListenableFuture<?> |
rollupAsync(com.google.common.util.concurrent.ListenableFuture<com.datastax.driver.core.ResultSet> input,
Executor asyncExecutor,
MoreFutures.DoRollup function) |
static com.google.common.util.concurrent.ListenableFuture<?> |
transformAsync(com.google.common.util.concurrent.ListenableFuture<com.datastax.driver.core.ResultSet> input,
Executor asyncExecutor,
MoreFutures.DoWithResults function) |
static Exception |
unwrapDriverException(ExecutionException e) |
static void |
waitForAll(Collection<? extends Future<?>> futures) |
public static <V> com.google.common.util.concurrent.ListenableFuture<V> onFailure(com.google.common.util.concurrent.ListenableFuture<V> future,
Runnable onFailure)
public static <V> com.google.common.util.concurrent.ListenableFuture<V> onSuccessAndFailure(com.google.common.util.concurrent.ListenableFuture<V> future,
Runnable onSuccess,
Runnable onFailure)
public static com.google.common.util.concurrent.ListenableFuture<?> rollupAsync(Collection<com.google.common.util.concurrent.ListenableFuture<com.datastax.driver.core.ResultSet>> futures, Executor asyncExecutor, MoreFutures.DoRollup function)
public static com.google.common.util.concurrent.ListenableFuture<?> rollupAsync(com.google.common.util.concurrent.ListenableFuture<com.datastax.driver.core.ResultSet> input,
Executor asyncExecutor,
MoreFutures.DoRollup function)
public static com.google.common.util.concurrent.ListenableFuture<?> transformAsync(com.google.common.util.concurrent.ListenableFuture<com.datastax.driver.core.ResultSet> input,
Executor asyncExecutor,
MoreFutures.DoWithResults function)
public static Exception unwrapDriverException(ExecutionException e)
public static void waitForAll(Collection<? extends Future<?>> futures) throws Exception
ExceptionCopyright © 2011–2019 Glowroot contributors. All rights reserved.