public abstract class AbstractDeferred extends Object
| Constructor and Description |
|---|
AbstractDeferred() |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(DeferredListener listener)
Adds a listener that is called once the deferred is settled.
|
Optional<JoynrException> |
getError() |
Optional<Object[]> |
getValues() |
boolean |
isFulfilled() |
boolean |
isRejected() |
boolean |
isSettled() |
protected boolean |
reject(JoynrException error)
Rejects the promise.
|
boolean |
reject(ProviderRuntimeException error)
Rejects the promise.
|
protected boolean |
resolve(Object... values)
Resolves the promise.
|
protected boolean resolve(Object... values)
values - the result which resolves the Deferred.protected boolean reject(JoynrException error)
error - the reason that caused the rejection.public boolean reject(ProviderRuntimeException error)
error - the reason that caused the rejection.public Optional<JoynrException> getError()
public Optional<Object[]> getValues()
public void addListener(DeferredListener listener)
listener - the listener to add.public boolean isFulfilled()
public boolean isRejected()
public boolean isSettled()
Copyright © 2021. All rights reserved.