public class FutureFunctionality extends Object
Constructor and Description |
---|
FutureFunctionality(Logger logger) |
Modifier and Type | Method and Description |
---|---|
Object |
addIntermediateResult(Object result) |
Object |
addIntermediateResultIfUndone(Object result) |
static void |
connectDelegationFuture(Future target,
IFuture source)
Connect a delegation future with the source.
|
static Future |
getDelegationFuture(Class<?> clazz,
FutureFunctionality func) |
static Future |
getDelegationFuture(IFuture<?> orig,
FutureFunctionality func) |
void |
notifyListener(IResultListener<Void> notify)
Notify the listener.
|
Exception |
setException(Exception exception) |
Exception |
setExceptionIfUndone(Exception exception) |
void |
setFinished(Collection<Object> results) |
void |
setFinishedIfUndone(Collection<Object> results) |
Object |
setResult(Object result) |
Object |
setResultIfUndone(Object result) |
void |
startScheduledNotifications(IResultListener<Void> notify)
Start the notifications.
|
IFuture<Void> |
terminate(Exception reason)
Terminate the future.
|
public FutureFunctionality(Logger logger)
public void setFinished(Collection<Object> results)
public void setFinishedIfUndone(Collection<Object> results)
public void notifyListener(IResultListener<Void> notify)
public void startScheduledNotifications(IResultListener<Void> notify)
public static Future getDelegationFuture(IFuture<?> orig, FutureFunctionality func)
public static Future getDelegationFuture(Class<?> clazz, FutureFunctionality func)
Copyright © 2012. All Rights Reserved.