Interface ContainerRuntime
- All Known Implementing Classes:
FrameworkContainerRuntime, NoContainerRuntime
@Internal
public interface ContainerRuntime
The editable-slot half of the UI runtime. Internal; implemented by the chest backend item.
Ownership is keyed by the opaque handle, never by its diagnostic name or SlotContainer#owner().
-
Method Summary
Modifier and TypeMethodDescriptionvoidattach(SlotContainer container, UiSession<?> session) sessionnow showscontainer.create(UiOwner owner, ContainerSpec spec, ContainerHost host) Creates a container for this module copy and its host.voiddetach(SlotContainer container, UiSession<?> session) sessionno longer showscontainer.engine()The engine that applies gestures to this runtime's containers.voidfinishUnload(UiOwner owner, long deadlineNanos) Unload step 6: await answers until the same deadline and end every container of this copy.voidprepareUnload(UiOwner owner, long deadlineNanos) Unload step 2: freeze new work for this module copy and retain the shared absolute System.nanoTime deadline.voidstartUnloadCommits(UiOwner owner) Unload step 4: start changed COMMIT writes for this copy, reusing any write already in flight.
-
Method Details
-
create
Creates a container for this module copy and its host. Server thread, after the service's own checks. -
attach
sessionnow showscontainer. Idempotent for a session/container pair. Server thread. -
detach
sessionno longer showscontainer. Must tolerate an absent or partially failed attach. If the container's owner is unloading, end through the unload path using the deadline supplied toprepareUnload(UiOwner, long), never through endWhenUnviewed. Server thread. -
engine
GestureEngine engine()The engine that applies gestures to this runtime's containers. -
prepareUnload
Unload step 2: freeze new work for this module copy and retain the shared absolute System.nanoTime deadline. All later detach/wait operations use that deadline, without restarting a timeout. Unloading thread. -
startUnloadCommits
Unload step 4: start changed COMMIT writes for this copy, reusing any write already in flight. Unloading thread. -
finishUnload
Unload step 6: await answers until the same deadline and end every container of this copy. Unloading thread.
-