Uses of Interface
com.atlassian.util.concurrent.Promise

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)
           
<B> Promise<B>
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.
<B> Promise<B>
ForwardingPromise.flatMap(com.google.common.base.Function<? super A,Promise<B>> function)
           
<B> Promise<B>
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.
<B> Promise<B>
ForwardingPromise.fold(com.google.common.base.Function<java.lang.Throwable,? extends B> handleThrowable, com.google.common.base.Function<? super A,? extends B> function)
           
static
<A> Promise<A>
Promises.forFuture(java.util.concurrent.Future<A> future)
          Creates a promise from the given future.
static
<A> Promise<A>
Promises.forListenableFuture(com.google.common.util.concurrent.ListenableFuture<A> future)
          Creates a promise from the given future.
<B> Promise<B>
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.
<B> Promise<B>
ForwardingPromise.map(com.google.common.base.Function<? super A,? extends B> function)
           
static
<A> Promise<A>
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
<A> Promise<A>
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
<A> Promise<A>
Promises.toRejectedPromise(java.lang.Throwable t, java.lang.Class<A> resultType)
          Creates a new, rejected promise from the given Throwable and result type.
static
<A> Promise<A>
Promises.toResolvedPromise(A value)
          Creates a new, resolved promise for the specified concrete value.
static
<A> Promise<java.util.List<A>>
Promises.when(java.lang.Iterable<? extends Promise<? extends A>> promises)
          Returns a new Promise representing the status of a list of other promises.
static
<A> Promise<java.util.List<A>>
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
<A> Promise<java.util.List<A>>
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
<B> Promise<B>
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.
<B> Promise<B>
ForwardingPromise.flatMap(com.google.common.base.Function<? super A,Promise<B>> function)
           
static
<A> Promise<java.util.List<A>>
Promises.when(java.lang.Iterable<? extends Promise<? extends A>> promises)
          Returns a new Promise representing the status of a list of other promises.
 



Copyright © 2014 Atlassian. All Rights Reserved.