Class CompoundFuture
java.lang.Object
org.odpi.openmetadata.repositoryservices.events.future.CompoundFuture
- All Implemented Interfaces:
OMRSFuture
OMRSFuture
which has a list of child futures. It
is not complete until all of its child futures have completed.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addFuture
(OMRSFuture future) Adds a future whose result should be includedboolean
Does this future have children?boolean
isDone()
Checks whether processing for the future has completed.
-
Constructor Details
-
CompoundFuture
public CompoundFuture()
-
-
Method Details
-
addFuture
Adds a future whose result should be included- Parameters:
future
- the future to add
-
hasChildren
public boolean hasChildren()Does this future have children?- Returns:
- boolean flag
-
isDone
public boolean isDone()Checks whether processing for the future has completed.- Specified by:
isDone
in interfaceOMRSFuture
- Returns:
- boolean
-