|
||||||||||
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<? super A> e)
Registers a callback to be called when the promised object is available. |
|
Promise<A> |
ForwardingPromise.done(Effect<? super A> e)
|
|
Promise<A> |
Promise.fail(Effect<Throwable> e)
Registers a callback to be called when an exception is thrown. |
|
Promise<A> |
ForwardingPromise.fail(Effect<Throwable> e)
|
|
|
Promise.flatMap(com.google.common.base.Function<? super A,? extends Promise<? extends 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,? extends Promise<? extends B>> function)
|
|
|
Promise.fold(com.google.common.base.Function<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<Throwable,? extends B> handleThrowable,
com.google.common.base.Function<? super A,? extends B> function)
|
|
static
|
Promises.forFuture(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<Throwable,? extends A> handleThrowable)
Recover from an exception using the supplied exception strategy |
|
Promise<A> |
ForwardingPromise.recover(com.google.common.base.Function<Throwable,? extends A> handleThrowable)
|
|
static
|
Promises.rejected(Throwable throwable)
Creates a new, rejected promise from the given Throwable and result
type. |
|
static
|
Promises.rejected(Throwable throwable,
Class<A> resultType)
Deprecated. Use Promises.rejected(Throwable) |
|
|
ExecutorSubmitter.submit(Callable<T> task)
Submits a value-returning task for execution and returns a Promise representing the pending results of the task. |
|
|
ExecutorSubmitter.submit(Supplier<T> task)
Submits a value-returning task for execution and returns a Promise representing the pending results of the task. |
|
Promise<A> |
Promise.then(com.google.common.util.concurrent.FutureCallback<? super A> callback)
Registers a FutureCallback to handle both success and failure (exception) cases. |
|
Promise<A> |
ForwardingPromise.then(com.google.common.util.concurrent.FutureCallback<? super A> callback)
|
|
static
|
Promises.toRejectedPromise(Throwable t)
Creates a new, rejected promise from the given Throwable and result type. |
|
static
|
Promises.toRejectedPromise(Throwable t,
Class<A> resultType)
Deprecated. Use Promises.toRejectedPromise(Throwable) |
|
static
|
Promises.toResolvedPromise(A value)
Creates a new, resolved promise for the specified concrete value. |
|
static
|
Promises.when(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 that return types with arguments of type Promise | ||
---|---|---|
static
|
Promises.toPromise()
Creates a new, resolved promise for the specified concrete value. |
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,? extends Promise<? extends 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,? extends Promise<? extends B>> function)
|
|
static
|
Promises.when(Iterable<? extends Promise<? extends A>> promises)
Returns a new Promise representing the status of a list of other
promises. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |