public abstract class TriggerSuccessFuture<T> extends TriggerFuture<T>
Extends TriggerFuture so that it only gets triggered on successful (no exception) completion of the Future. This prevents, for example, cache put()s from firing when concurrency exceptions are thrown.
raw
Constructor and Description |
---|
TriggerSuccessFuture(Future<T> raw)
Wrap a normal Future>
|
Modifier and Type | Method and Description |
---|---|
protected abstract void |
success(T result)
This method will be called ONCE upon successful completion of the future.
|
protected void |
trigger()
This method will be called ONCE upon completion of the future, successful or not.
|
cancel, get, get, isCancelled, isDone
protected abstract void success(T result)
protected final void trigger()
TriggerFuture
trigger
in class TriggerFuture<T>
Copyright © 2014. All rights reserved.