Interface References

All Known Implementing Classes:
DebugReferencesByContextMap, DebugReferencesWithStack

public interface References
Interface for implementations of reference counting
Author:
baldersheim
  • Method Summary

    Modifier and Type
    Method
    Description
     
    refer(Object context)
    Adds a reference and return an objects that when closed will return the reference.
    int
    Returns number of held references
    void
    Release the initial reference
  • Method Details

    • release

      void release()
      Release the initial reference
    • referenceCount

      int referenceCount()
      Returns number of held references
    • refer

      ResourceReference refer(Object context)
      Adds a reference and return an objects that when closed will return the reference. Supply a context that can provide link to the one holding the link. Useful for debugging
    • currentState

      String currentState()