Class OOCFuture<T>
java.lang.Object
org.apache.sysds.runtime.ooc.cache.OOCFuture<T>
Small future implementation for OOC hot paths. It supports multiple synchronous subscribers without
the completion-stage support of
CompletableFuture.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic <T> OOCFuture<T>completed(T value) booleancompleteExceptionally(Throwable error) static <T> OOCFuture<T>get()booleanisDone()<R> OOCFuture<R>voidthenAccept(Consumer<? super T> action) voidwhenComplete(BiConsumer<? super T, ? super Throwable> action)
-
Constructor Details
-
OOCFuture
public OOCFuture()
-
-
Method Details
-
completed
-
failed
-
complete
-
completeExceptionally
-
thenAccept
-
whenComplete
-
map
-
isDone
public boolean isDone() -
getNow
-
get
-
get
public T get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
-