T
- The result type returned by this futurepublic class SimpleCompletableFuture<T> extends AbstractCompletableFuture<T>
AbstractCompletableFuture
implementation
that allows completing via public setResult(Object)
method.Constructor and Description |
---|
SimpleCompletableFuture(Executor executor,
ILogger logger) |
Modifier and Type | Method and Description |
---|---|
boolean |
setResult(Object result)
Sets the result.
|
andThen, andThen, cancel, cancelled, done, get, get, getResult, isCancelled, isDone, shouldCancel
public boolean setResult(Object result)
AbstractCompletableFuture
result
is an instance of Throwable, this
future will be completed exceptionally. That is, AbstractCompletableFuture.get()
will throw
the exception rather than return it.setResult
in class AbstractCompletableFuture<T>
Copyright © 2019 Hazelcast, Inc.. All Rights Reserved.