public static class QuorumFuturesFactory.CompositeFuture<R> extends Object implements Future<R>
Modifier and Type | Method and Description |
---|---|
boolean |
cancel(boolean mayInterruptIfRunning) |
boolean |
containsThrowableFrom(Class<? extends Throwable> check)
Checks whether one of the exceptions is throwable from the given type.
|
R |
get() |
R |
get(long timeout,
TimeUnit unit) |
Set<Throwable> |
getThrowables()
Returns a set of Throwable classes from all futures that completed in any exceptional
fashion.
|
boolean |
isCancelled() |
boolean |
isConflict()
Returns true if there were two successful results with different values, otherwise false.
|
boolean |
isDone() |
public R get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
get
in interface Future<R>
InterruptedException
ExecutionException
TimeoutException
public R get() throws InterruptedException, ExecutionException
get
in interface Future<R>
InterruptedException
ExecutionException
public boolean cancel(boolean mayInterruptIfRunning)
public boolean isCancelled()
isCancelled
in interface Future<R>
public boolean isConflict()
public Set<Throwable> getThrowables()
Copyright © 2019 CorfuDB. All rights reserved.