| Package | Description |
|---|---|
| tech.mlsql.common.utils.concurrent |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractCheckedFuture<V,X extends Exception>
A delegating wrapper around a
ListenableFuture that adds support for
the AbstractCheckedFuture.checkedGet() and AbstractCheckedFuture.checkedGet(long, TimeUnit) methods. |
| Modifier and Type | Method and Description |
|---|---|
static <V,X extends Exception> |
Futures.immediateCheckedFuture(V value)
Returns a
CheckedFuture which has its value set immediately upon
construction. |
static <V,X extends Exception> |
Futures.immediateFailedCheckedFuture(X exception)
Returns a
CheckedFuture which has an exception set immediately upon
construction. |
static <V,X extends Exception> |
Futures.makeChecked(ListenableFuture<V> future,
Function<Exception,X> mapper)
Creates a
CheckedFuture out of a normal ListenableFuture
and a Function that maps from Exception instances into the
appropriate checked type. |
Copyright © 2020. All rights reserved.