public final class FluentFutures2 extends Object
FluentFuture
.
There are more such utilities in yangtools' FluentFutures.Modifier and Type | Method and Description |
---|---|
static <V,E extends Exception> |
toChecked(com.google.common.util.concurrent.FluentFuture<V> future,
Function<? super Exception,E> mapper)
Deprecated.
Replace
CheckedFuture usages in your code by
FluentFuture (or CompletionStage ) |
@Deprecated public static <V,E extends Exception> com.google.common.util.concurrent.CheckedFuture<V,E> toChecked(com.google.common.util.concurrent.FluentFuture<V> future, Function<? super Exception,E> mapper)
CheckedFuture
usages in your code by
FluentFuture
(or CompletionStage
)The implementation just uses Futures.makeChecked(ListenableFuture, com.google.common.base.Function)
,
so this is pure syntactic sugar - making it easier to remember and find: you have a FluentFuture and you find
this with convenience conversion methods - like we have for other types in this package.
Copyright © 2019 OpenDaylight. All rights reserved.