Interface TurnLease
- All Superinterfaces:
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
-
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:
closein interfaceAutoCloseable
-