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

Packages that use Effect
com.atlassian.util.concurrent   
 

Uses of Effect in com.atlassian.util.concurrent
 

Methods in com.atlassian.util.concurrent that return Effect
static
<E> Effect<E>
Effects.noop()
           
static Effect<java.lang.Throwable> Promises.reject(com.google.common.util.concurrent.SettableFuture<?> delegate)
          Creates a new Effect that forwards a promise's fail events to the specified future delegate's SettableFuture.setException(Throwable) method -- that is, the new callback rejects the delegate future if invoked.
 

Methods in com.atlassian.util.concurrent with parameters of type Effect
 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)
           
 void Effect.Applicant.foreach(Effect<A> effect)
          Perform the given side-effect for each contained element.
static
<A> com.google.common.util.concurrent.FutureCallback<A>
Promises.futureCallback(Effect<A> success, Effect<java.lang.Throwable> failure)
          Create a FutureCallback by composing two Effects.
static
<A> com.google.common.util.concurrent.FutureCallback<A>
Promises.futureCallback(Effect<A> success, Effect<java.lang.Throwable> failure)
          Create a FutureCallback by composing two Effects.
static
<A> com.google.common.util.concurrent.FutureCallback<A>
Promises.onFailureDo(Effect<java.lang.Throwable> effect)
          Create a FutureCallback from an Effect to be run if there is a failure.
static
<A> com.google.common.util.concurrent.FutureCallback<A>
Promises.onSuccessDo(Effect<A> effect)
          Create a FutureCallback from an Effect to be run if there is a success.
 



Copyright © 2014 Atlassian. All Rights Reserved.