Package com.yahoo.jdisc.refcount
Interface References
- All Known Implementing Classes:
DebugReferencesByContextMap
,DebugReferencesWithStack
public interface References
Interface for implementations of reference counting
- Author:
- baldersheim
-
Method Summary
Modifier and TypeMethodDescriptionAdds a reference and return an objects that when closed will return the reference.int
Returns number of held referencesvoid
release()
Release the initial reference
-
Method Details
-
release
void release()Release the initial reference -
referenceCount
int referenceCount()Returns number of held references -
refer
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()
-