public interface ExecutionRef extends Registry
Execution
that is usable from outside of it.
An execution ref is-a registry.
It is a read only view of the actual execution registry, while the execution is active.
Once the execution has completed, the registry is effectively empty.
Note that there are no guarantees that the registry is immutable.
The execution may mutate the registry or its entries.
Concurrent access via this reference is however safe.
A ref avoids holding a long lived reference to the actual execution and its registry.
Therefore, holding a reference to an execution-ref in memory does not prevent the execution's
registry from being garbage collected.Execution.getParent()
Modifier and Type | Method and Description |
---|---|
ExecutionRef |
getParent()
A ref to the execution that forked this execution.
|
boolean |
isComplete()
Whether the execution this refers to is complete.
|
java.util.Optional<ExecutionRef> |
maybeParent()
A ref to the execution that forked this execution, if it has a parent.
|
ExecutionRef getParent() throws java.lang.IllegalStateException
java.lang.IllegalStateException
- if this is a top level exception with no parentmaybeParent()
java.util.Optional<ExecutionRef> maybeParent()
boolean isComplete()
Execution.isComplete()
.