List of usage examples for com.google.common.util.concurrent Futures getChecked
@GwtIncompatible("reflection") public static <V, X extends Exception> V getChecked(Future<V> future, Class<X> exceptionClass, long timeout, TimeUnit unit) throws X
From source file:org.onosproject.store.consistent.impl.DefaultAtomicValue.java
private static <V> V complete(CompletableFuture<V> future) { return Futures.getChecked(future, StorageException.class, OPERATION_TIMEOUT_MILLIS, TimeUnit.MILLISECONDS); }