Class ReferenceCounted<T>

java.lang.Object
com.linkedin.venice.utils.ReferenceCounted<T>
All Implemented Interfaces:
AutoCloseable

public class ReferenceCounted<T> extends Object implements AutoCloseable
  • Constructor Details

    • ReferenceCounted

      public ReferenceCounted(T object, Consumer<T> deleter)
  • Method Details

    • get

      public T get()
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
    • retain

      public void retain()
    • release

      public void release()
    • getReferenceCount

      public int getReferenceCount()