- Enclosing class:
RrdBackendFactory
Phantom reference that closes the backend when the RRD database is garbage collected.
Field Summary
FieldsModifier and TypeFieldDescriptionprivate RrdBackendThe backend to close, null once it has been closed.Constructor Summary
ConstructorsConstructorDescriptionClosingReference(RrdDb db, RrdBackend backend, ReferenceQueue<? super RrdDb> q) Creates a new closing reference.Method Summary
All MethodsModifier and TypeMethodDescriptionvoidclear()Closes the wrapped backend before clearing the cached instance.Methods inherited from class PhantomReference
getMethods inherited from class Reference
clone, enqueue, reachabilityFence, refersTo
Field Details
backend
The backend to close, null once it has been closed.
Constructor Details
ClosingReference
Creates a new closing reference.- Parameters:
db- the RRD database to referencebackend- the backend to closeq- the reference queue
Method Details
clear