Class DelegatableFuture
- 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 Summary
Constructors Constructor Description DelegatableFuture()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisDone()Return whether completevoidsetDelegate(OMRSFuture delegate)Sets the future to delegate to.
-
-
-
Method Detail
-
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:
isDonein interfaceOMRSFuture- Returns:
- boolean
-
-