Class DelegatableFuture
java.lang.Object
org.odpi.openmetadata.repositoryservices.events.future.DelegatableFuture
- All Implemented Interfaces:
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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isDone()
Return whether completevoid
setDelegate
(OMRSFuture delegate) Sets the future to delegate to.
-
Constructor Details
-
DelegatableFuture
public DelegatableFuture()
-
-
Method Details
-
setDelegate
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 interfaceOMRSFuture
- Returns:
- boolean
-