Class CompoundFuture
- java.lang.Object
-
- org.odpi.openmetadata.repositoryservices.events.future.CompoundFuture
-
- All Implemented Interfaces:
OMRSFuture
public class CompoundFuture extends Object implements OMRSFuture
OMRSFuturewhich has a list of child futures. It is not complete until all of its child futures have completed.
-
-
Constructor Summary
Constructors Constructor Description CompoundFuture()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddFuture(OMRSFuture future)Adds a future whose result should be includedbooleanhasChildren()booleanisDone()Checks whether processing for the future has completed.
-
-
-
Method Detail
-
addFuture
public void addFuture(OMRSFuture future)
Adds a future whose result should be included- Parameters:
future- the future to add
-
hasChildren
public boolean hasChildren()
-
isDone
public boolean isDone()
Description copied from interface:OMRSFutureChecks whether processing for the future has completed.- Specified by:
isDonein interfaceOMRSFuture- Returns:
- boolean
-
-