Class TransportDelegateAttachment
java.lang.Object
com.soklet.TransportDelegateAttachment
Framework-created result of termination-owning unary delegate attachment.
Soklet owns the delegate subtree's completion state. The enclosing transport
may retain this immutable handle to drive the child runtime as part of its own
lifecycle response and to observe, but never complete, the subtree's
termination stage.
- Author:
- Mark Allen
-
Method Summary
Modifier and TypeMethodDescriptionAcquires the exact runtime returned by the immediate delegate.Acquires the one cached, read-only minimal stage for the delegate's frozen subtree.
-
Method Details
-
getTransportRuntime
Acquires the exact runtime returned by the immediate delegate.- Returns:
- the delegate runtime
-
whenTerminated
Acquires the one cached, read-only minimal stage for the delegate's frozen subtree. The stage is observational and cannot be completed or otherwise mutated by callers. A transport must not synchronously wait for it fromattach,TransportRuntime.start(StartupContext),TransportRuntime.shutdownGracefully(ShutdownContext),TransportRuntime.shutdownForcibly(ShutdownContext), or any callback/activity whose completion is part of that subtree's termination proof.- Returns:
- a stage completed only after committed subtree termination proof
-