Class ProceduralReferenceCounted

java.lang.Object
io.deephaven.util.referencecounting.ReferenceCounted
io.deephaven.util.referencecounting.ProceduralReferenceCounted
All Implemented Interfaces:
LogOutputAppendable

public final class ProceduralReferenceCounted extends ReferenceCounted
A ReferenceCounted implementation that takes a Runnable onReferenceCountAtZero procedure, in order to avoid relying on inheritance where necessary or desirable.
  • Constructor Details

    • ProceduralReferenceCounted

      public ProceduralReferenceCounted(@NotNull @NotNull Runnable onReferenceCountAtZeroProcedure, int initialValue)
    • ProceduralReferenceCounted

      public ProceduralReferenceCounted(@NotNull @NotNull Runnable onReferenceCountAtZeroProcedure)
  • Method Details