Class 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 Detail

      • CompoundFuture

        public CompoundFuture()
    • 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: OMRSFuture
        Checks whether processing for the future has completed.
        Specified by:
        isDone in interface OMRSFuture
        Returns:
        boolean