java.lang.Object
org.rrd4j.core.RrdDbPool.RrdEntry
- Enclosing class:
RrdDbPool
One pooled database with its usage state.
Field Summary
FieldsModifier and TypeFieldDescription(package private) intOpen requests against this entry.(package private) final ReentrantReadWriteLockLock guarding the entry's use.(package private) final LockConvenience view of the write lock.(package private) final booleanTrue if the entry only reserves the key.(package private) RrdDbThe pooled database, null while a placeholder.(package private) final URIThe canonical URI this entry holds.(package private) final CountDownLatchLatch signaled when the entry becomes empty.Constructor Summary
ConstructorsConstructorDescriptionBuilds an entry for one URI.RrdEntry(RrdDbPool.RrdEntry parent) Builds a placeholder copying the parent's state.Method Summary
All Methods
Field Details
rrdDb
RrdDb rrdDbThe pooled database, null while a placeholder.count
int countOpen requests against this entry.waitempty
Latch signaled when the entry becomes empty.inuse
Lock guarding the entry's use.lock
Convenience view of the write lock.placeholder
final boolean placeholderTrue if the entry only reserves the key.uri
The canonical URI this entry holds.
Constructor Details
RrdEntry
RrdEntry(URI canonicalPath) Builds an entry for one URI.- Parameters:
canonicalPath- the canonical URI to hold
RrdEntry
RrdEntry(RrdDbPool.RrdEntry parent) Builds a placeholder copying the parent's state.- Parameters:
parent- the entry to copy locks from
Method Details
toString