org.globus.cog.karajan.workflow.futures
Class FutureNamedArgument
java.lang.Object
org.globus.cog.karajan.workflow.futures.FutureNamedArgument
- All Implemented Interfaces:
- NamedArgumentsListener, Future
public class FutureNamedArgument
- extends Object
- implements Future, NamedArgumentsListener
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FutureNamedArgument
public FutureNamedArgument(String name,
NamedArguments named)
close
public void close()
- Specified by:
close
in interface Future
isClosed
public boolean isClosed()
- Specified by:
isClosed
in interface Future
getValue
public Object getValue()
throws ExecutionException
- Specified by:
getValue
in interface Future
- Throws:
ExecutionException
addModificationAction
public void addModificationAction(EventListener target,
Event event)
- Description copied from interface:
Future
- When the future becomes available, send the event to the element.
- Specified by:
addModificationAction
in interface Future
namedArgumentAdded
public void namedArgumentAdded(String name,
NamedArguments source)
- Specified by:
namedArgumentAdded
in interface NamedArgumentsListener
fail
public void fail(FutureEvaluationException e)
- Description copied from interface:
Future
- Signal to any threads waiting on this future that the
evaluation of the future has failed. The exception
passed through this method should be thrown by all
sub-sequent calls to getValue();
- Specified by:
fail
in interface Future