barchart-util-concurrent
2.0.16 / 2012-12-19T12:07:36.441-0600

com.barchart.util.concurrent
Class FutureNotifier<V>

java.lang.Object
  extended by com.barchart.util.concurrent.FutureNotifierBase<V,FutureNotifier<V>>
      extended by 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

Constructor Summary
FutureNotifier()
           
 
Method Summary
static
<P> FutureNotifier<P>
failure(Throwable error)
           
static
<P> FutureNotifier<P>
success(P result)
           
 
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
 

Constructor Detail

FutureNotifier

public FutureNotifier()
Method Detail

success

public static <P> FutureNotifier<P> success(P result)

failure

public static <P> FutureNotifier<P> failure(Throwable error)

barchart-util-concurrent
2.0.16 / 2012-12-19T12:07:36.441-0600

Copyright © 2011-2012 Barchart, Inc.. All Rights Reserved.