Interface Acquired<T>

Type Parameters:
T - the type of the acquired object

public sealed interface Acquired<T>
Represents an object that has been safely acquired and can be freed again.

This class should not be shared, and it is recommended to call unlock() once the acquisition goal has been fulfilled to limit blocking time.

  • Method Summary

    Modifier and Type
    Method
    Description
    get()
     
    void
     
  • Method Details

    • get

      T get()
    • unlock

      void unlock()