Interface SceneOutputPort<T>

Type Parameters:
T - message type defined by the optional adapter
All Superinterfaces:
AutoCloseable

public interface SceneOutputPort<T> extends 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

    Modifier and Type
    Method
    Description
    void
    Stops the adapter and releases its external resources promptly.
    boolean
    offer(T value)
    Offers a message without blocking the Processing/OpenGL thread.
  • Method Details

    • offer

      boolean offer(T value)
      Offers a message without blocking the Processing/OpenGL thread.
      Parameters:
      value - message to offer to the external adapter
      Returns:
      true when accepted; false when unavailable or under backpressure
    • close

      void close()
      Stops the adapter and releases its external resources promptly. Implementations should make repeated calls harmless.
      Specified by:
      close in interface AutoCloseable