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

public class DelegatableFuture extends Object implements OMRSFuture
Future that starts out as unfinished can can be delegated to a different Future once processing takes place. This is useful if we need to return a future for an event that has not been scheduled yet.
  • Constructor Details

    • DelegatableFuture

      public DelegatableFuture()
  • Method Details

    • setDelegate

      public void setDelegate(OMRSFuture delegate)
      Sets the future to delegate to. This can only be called once.
      Parameters:
      delegate - future
    • isDone

      public boolean isDone()
      Return whether complete
      Specified by:
      isDone in interface OMRSFuture
      Returns:
      boolean