Interface TurnLease

All Superinterfaces:
AutoCloseable

public interface TurnLease extends AutoCloseable
A handle representing an acquired session turn slot.

Returned by SessionTurnGate.acquire(String). The gateway closes the lease in doFinally after the turn completes. Implementations must be idempotent: calling close() more than once must be safe.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Releases the turn slot held by this lease.
  • Method Details

    • close

      void close()
      Releases the turn slot held by this lease.

      Must not throw. Any release-side error should be logged internally by the implementation.

      Specified by:
      close in interface AutoCloseable