Class DeferredCallable<D,P>

java.lang.Object
org.jdeferred2.DeferredCallable<D,P>
Type Parameters:
D - Type used as return type of Callable.call(), and Deferred.resolve(Object)
P - Type used for Deferred.notify(Object)
All Implemented Interfaces:
Callable<D>

public abstract class DeferredCallable<D,P> extends Object implements Callable<D>
Use this as superclass in case you need to be able to return a result and notify progress. If you don't need to notify progress, you can simply use Callable
See Also:
  • Field Details

  • Constructor Details

    • DeferredCallable

      public DeferredCallable()
      Creates a new DeferredCallable with DEFAULT startPolicy.
    • DeferredCallable

      public DeferredCallable(DeferredManager.StartPolicy startPolicy)
      Creates a new DeferredCallable with the given startPolicy.
      Parameters:
      startPolicy - the startPolicy to use. will be set to DEFAULT if null.
  • Method Details