Package io.micronaut.core.io.buffer
Interface ReferenceCounted
- All Known Implementing Classes:
LazyJsonNode
public interface ReferenceCounted
- Since:
- 1.0
- Author:
- Graeme Rocher
-
Method Details
-
retain
ReferenceCounted retain()Retain an additional reference to this object. All retained references must be released, or there will be a leak.- Returns:
- this
-
release
boolean release()Release a reference to this object.- Returns:
- Whether the reference has been released
- Throws:
IllegalStateException
- if the reference count is already 0
-