com.barchart.util.concurrent
Class FutureNotifier<V>
java.lang.Object
com.barchart.util.concurrent.FutureNotifierBase<V,FutureNotifier<V>>
com.barchart.util.concurrent.FutureNotifier<V>
- Type Parameters:
V - The result type
- All Implemented Interfaces:
- FutureCallback<V,FutureNotifier<V>>, FutureListener<V>, Future<V>
public class FutureNotifier<V>
- extends FutureNotifierBase<V,FutureNotifier<V>>
An implementation of FutureCallback that does not do any actual computation,
but just serves as a communication proxy between the executor and listeners.
- Author:
- jeremy
| Methods inherited from class com.barchart.util.concurrent.FutureNotifierBase |
addResultListener, cancel, done, fail, get, get, getUnchecked, isCancelled, isDone, resultAvailable, set, setException, succeed |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FutureNotifier
public FutureNotifier()
success
public static <P> FutureNotifier<P> success(P result)
failure
public static <P> FutureNotifier<P> failure(Throwable error)
Copyright © 2011-2012 Barchart, Inc.. All Rights Reserved.