Package com.victorvalentim.zividomelive
Interface SceneOutputPort<T>
- Type Parameters:
T- message type defined by the optional adapter
- All Superinterfaces:
AutoCloseable
Optional non-blocking sink for scene-control messages handled by an external adapter.
If the transport can block, the adapter must own a bounded worker queue; offer(Object)
itself must return promptly. After connection, ScenePorts owns adapter lifecycle.
API stability: Advanced Stable.
- Since:
- 2.0.0
-
Method Summary
-
Method Details
-
offer
Offers a message without blocking the Processing/OpenGL thread.- Parameters:
value- message to offer to the external adapter- Returns:
truewhen accepted;falsewhen unavailable or under backpressure
-
close
void close()Stops the adapter and releases its external resources promptly. Implementations should make repeated calls harmless.- Specified by:
closein interfaceAutoCloseable
-