Interface CleanupReference<T>

All Superinterfaces:
SimpleReference<T>
All Known Implementing Classes:
WeakCleanupReference

public interface CleanupReference<T> extends SimpleReference<T>
SimpleReference with an additional cleanup callback.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Allow for a reference queue consumer to invoke a custom cleanup method, for post-GC resource reclamation.

    Methods inherited from interface io.deephaven.base.reference.SimpleReference

    clear, get
  • Method Details

    • cleanup

      void cleanup()
      Allow for a reference queue consumer to invoke a custom cleanup method, for post-GC resource reclamation.