|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Promise | |
---|---|
com.atlassian.util.concurrent |
Uses of Promise in com.atlassian.util.concurrent |
---|
Classes in com.atlassian.util.concurrent that implement Promise | |
---|---|
class |
ForwardingPromise<A>
A promise which forwards all its method calls to another promise. |
Methods in com.atlassian.util.concurrent that return Promise | ||
---|---|---|
protected abstract Promise<A> |
ForwardingPromise.delegate()
|
|
Promise<A> |
Promise.done(Effect<A> e)
Registers a callback to be called when the promised object is available. |
|
Promise<A> |
ForwardingPromise.done(Effect<A> e)
|
|
Promise<A> |
Promise.fail(Effect<java.lang.Throwable> e)
Registers a callback to be called when an exception is thrown. |
|
Promise<A> |
ForwardingPromise.fail(Effect<java.lang.Throwable> e)
|
|
|
Promise.flatMap(com.google.common.base.Function<? super A,Promise<B>> function)
Transforms this promise from one type to another by way of a transformation function that returns a new Promise, leaving the strategy for that promise production up to the function. |
|
|
ForwardingPromise.flatMap(com.google.common.base.Function<? super A,Promise<B>> function)
|
|
|
Promise.fold(com.google.common.base.Function<java.lang.Throwable,? extends B> handleThrowable,
com.google.common.base.Function<? super A,? extends B> function)
Transform this promise from one type to another, also providing a strategy for dealing with any exceptions encountered. |
|
|
ForwardingPromise.fold(com.google.common.base.Function<java.lang.Throwable,? extends B> handleThrowable,
com.google.common.base.Function<? super A,? extends B> function)
|
|
static
|
Promises.forFuture(java.util.concurrent.Future<A> future)
Creates a promise from the given future. |
|
static
|
Promises.forListenableFuture(com.google.common.util.concurrent.ListenableFuture<A> future)
Creates a promise from the given future. |
|
|
Promise.map(com.google.common.base.Function<? super A,? extends B> function)
Transforms this Promise from one type to another by way of a
transformation function. |
|
|
ForwardingPromise.map(com.google.common.base.Function<? super A,? extends B> function)
|
|
static
|
Promises.promise(A value)
Creates a new, resolved promise for the specified concrete value. |
|
Promise<A> |
Promise.recover(com.google.common.base.Function<java.lang.Throwable,? extends A> handleThrowable)
Recover from an exception using the supplied exception strategy |
|
Promise<A> |
ForwardingPromise.recover(com.google.common.base.Function<java.lang.Throwable,? extends A> handleThrowable)
|
|
static
|
Promises.rejected(java.lang.Throwable throwable,
java.lang.Class<A> resultType)
Creates a new, rejected promise from the given Throwable and result
type. |
|
Promise<A> |
Promise.then(com.google.common.util.concurrent.FutureCallback<A> callback)
Registers a FutureCallback to handle both success and failure (exception) cases. |
|
Promise<A> |
ForwardingPromise.then(com.google.common.util.concurrent.FutureCallback<A> callback)
|
|
static
|
Promises.toRejectedPromise(java.lang.Throwable t,
java.lang.Class<A> resultType)
Creates a new, rejected promise from the given Throwable and result type. |
|
static
|
Promises.toResolvedPromise(A value)
Creates a new, resolved promise for the specified concrete value. |
|
static
|
Promises.when(java.lang.Iterable<? extends Promise<? extends A>> promises)
Returns a new Promise representing the status of a list of other
promises. |
|
static
|
Promises.when(Promise<? extends A>... promises)
Returns a new Promise representing the status of a list of other
promises. |
Methods in com.atlassian.util.concurrent with parameters of type Promise | ||
---|---|---|
static
|
Promises.when(Promise<? extends A>... promises)
Returns a new Promise representing the status of a list of other
promises. |
Method parameters in com.atlassian.util.concurrent with type arguments of type Promise | ||
---|---|---|
|
Promise.flatMap(com.google.common.base.Function<? super A,Promise<B>> function)
Transforms this promise from one type to another by way of a transformation function that returns a new Promise, leaving the strategy for that promise production up to the function. |
|
|
ForwardingPromise.flatMap(com.google.common.base.Function<? super A,Promise<B>> function)
|
|
static
|
Promises.when(java.lang.Iterable<? extends Promise<? extends A>> promises)
Returns a new Promise representing the status of a list of other
promises. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |