Package com.yahoo.jdisc.refcount
Interface References
-
- All Known Implementing Classes:
DebugReferencesByContextMap
,DebugReferencesWithStack
,ReferencesByCount
public interface References
Interface for implementations of reference counting- Author:
- baldersheim
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
currentState()
ResourceReference
refer(Object context)
Adds a reference and return an objects that when closed will return the reference.int
referenceCount()
Returns number of held referencesvoid
release()
Release the initial reference
-
-
-
Method Detail
-
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()
-
-