Class ProceduralReferenceCounted
java.lang.Object
io.deephaven.util.referencecounting.ReferenceCounted
io.deephaven.util.referencecounting.ProceduralReferenceCounted
- All Implemented Interfaces:
LogOutputAppendable
A
ReferenceCounted implementation that takes a Runnable onReferenceCountAtZero procedure, in order to
avoid relying on inheritance where necessary or desirable.-
Constructor Summary
ConstructorsConstructorDescriptionProceduralReferenceCounted(@NotNull Runnable onReferenceCountAtZeroProcedure) ProceduralReferenceCounted(@NotNull Runnable onReferenceCountAtZeroProcedure, int initialValue) -
Method Summary
Modifier and TypeMethodDescriptionprotected final voidCallback method that will be invoked when the reference count returns to zero.Methods inherited from class io.deephaven.util.referencecounting.ReferenceCounted
append, decrementReferenceCount, forceReferenceCountToZero, getReferenceCountDebug, incrementReferenceCount, resetReferenceCount, toString, tryDecrementReferenceCount, tryIncrementReferenceCount
-
Constructor Details
-
ProceduralReferenceCounted
public ProceduralReferenceCounted(@NotNull @NotNull Runnable onReferenceCountAtZeroProcedure, int initialValue) -
ProceduralReferenceCounted
-
-
Method Details
-
onReferenceCountAtZero
protected final void onReferenceCountAtZero()Description copied from class:ReferenceCountedCallback method that will be invoked when the reference count returns to zero.- Specified by:
onReferenceCountAtZeroin classReferenceCounted
-