|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
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
|
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
|
Promises.futureCallback(Effect<A> success,
Effect<java.lang.Throwable> failure)
Create a FutureCallback by composing two Effects. |
|
static
|
Promises.futureCallback(Effect<A> success,
Effect<java.lang.Throwable> failure)
Create a FutureCallback by composing two Effects. |
|
static
|
Promises.onFailureDo(Effect<java.lang.Throwable> effect)
Create a FutureCallback from an Effect to be run if there is a
failure. |
|
static
|
Promises.onSuccessDo(Effect<A> effect)
Create a FutureCallback from an Effect to be run if there is a
success. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |