public class MongoDbCacheStatistics extends java.lang.Object implements CacheStatistics
MongoDbCacheStatistics
.Constructor and Description |
---|
MongoDbCacheStatistics(com.mongodb.DBCollection collection) |
Modifier and Type | Method and Description |
---|---|
long |
getCapacity()
Gets the current capacity of the cache in a unit specific to the cache being monitored (e.g.
|
java.lang.String |
getName()
Gets a descriptive name of the cache instance for which statistics apply.
|
long |
getPercentFree()
Gets the percent free capacity remaining in the cache.
|
long |
getSize()
Gets the current size of the cache in a unit specific to the cache being monitored (e.g.
|
java.lang.String |
toString(java.lang.StringBuilder builder)
Writes a string representation of cache statistics to the given string builder.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getEvictions
public MongoDbCacheStatistics(com.mongodb.DBCollection collection)
public long getSize()
CacheStatistics
getSize
in interface CacheStatistics
public long getCapacity()
CacheStatistics
getCapacity
in interface CacheStatistics
public long getPercentFree()
CacheStatistics
getPercentFree
in interface CacheStatistics
public java.lang.String getName()
CacheStatistics
getName
in interface CacheStatistics
public java.lang.String toString(java.lang.StringBuilder builder)
CacheStatistics
toString
in interface CacheStatistics
builder
- String builder to which string representation is appended.