Class DeferredCallable<D,P>
java.lang.Object
org.jdeferred2.DeferredCallable<D,P>
- Type Parameters:
D- Type used as return type ofCallable.call(), andDeferred.resolve(Object)P- Type used forDeferred.notify(Object)
- All Implemented Interfaces:
Callable<D>
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a newDeferredCallablewith DEFAULTstartPolicy.DeferredCallable(DeferredManager.StartPolicy startPolicy) Creates a newDeferredCallablewith the givenstartPolicy. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidTrigger notification of an intermediate result.
-
Field Details
-
deferred
-
startPolicy
-
-
Constructor Details
-
DeferredCallable
public DeferredCallable()Creates a newDeferredCallablewith DEFAULTstartPolicy. -
DeferredCallable
Creates a newDeferredCallablewith the givenstartPolicy.- Parameters:
startPolicy- the startPolicy to use. will be set to DEFAULT ifnull.
-
-
Method Details
-
notify
Trigger notification of an intermediate result.- Parameters:
progress- the value to be sent as a notification- See Also:
-
getDeferred
-
getStartPolicy
-