java.lang.Object
org.odpi.openmetadata.repositoryservices.events.future.CompoundFuture
All Implemented Interfaces:
OMRSFuture

public class CompoundFuture extends Object implements OMRSFuture
OMRSFuture which has a list of child futures. It is not complete until all of its child futures have completed.
  • Constructor Details

    • CompoundFuture

      public CompoundFuture()
  • Method Details

    • addFuture

      public void addFuture(OMRSFuture future)
      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 interface OMRSFuture
      Returns:
      boolean