Interface ManagedHostBindings.BoundValue

All Superinterfaces:
AutoCloseable
Enclosing class:
ManagedHostBindings

public static interface ManagedHostBindings.BoundValue extends AutoCloseable
Prepared host binding. Reads must be nonblocking and must not establish new network connections.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Releases this binding's watches/resources, once; no application value is disposed here.
    get()
    Reads the current prepared value; caller ownership remains borrowed.
  • Method Details

    • get

      Object get()
      Reads the current prepared value; caller ownership remains borrowed.
      Returns:
      value assignable to the declared edge type, possibly null only when the adapter allows it
      Throws:
      IllegalStateException - if unavailable or closed
    • close

      void close() throws Exception
      Releases this binding's watches/resources, once; no application value is disposed here.
      Specified by:
      close in interface AutoCloseable
      Throws:
      Exception - if cleanup fails