Class CacheInfo
java.lang.Object
org.deltava.util.cache.CacheInfo
- All Implemented Interfaces:
Serializable
,Comparable<CacheInfo>
,ViewEntry
A bean to store information about a cache.
- Since:
- 2.6
- Version:
- 11.2
- Author:
- Luke
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
long
Returns the number of cache errors.long
getHits()
Returns the number of cache hits.getID()
Returns the cache ID.boolean
getIsGeo()
Returns whether this is a geolocation cache.boolean
Returns whether this is a remote cache.long
Returns the maximum size of the caches.long
Returns the number of cache requests.Returns the CSS class for this object if rendered in a view table.long
getSize()
Returns the number of objects in the caches.getType()
Returns the cache type.int
hashCode()
toString()
-
Constructor Details
-
CacheInfo
-
CacheInfo
-
-
Method Details
-
getType
-
getHits
public long getHits()Returns the number of cache hits.- Returns:
- the number of hits
-
getErrors
public long getErrors()Returns the number of cache errors. This is typically only used in remote caches.- Returns:
- the number of errors
-
getID
-
getRequests
public long getRequests()Returns the number of cache requests.- Returns:
- the number of requests
-
getSize
public long getSize()Returns the number of objects in the caches.- Returns:
- the number of objects
-
getMaxSize
public long getMaxSize()Returns the maximum size of the caches.- Returns:
- the maximum number of objects
-
getIsRemote
public boolean getIsRemote()Returns whether this is a remote cache.- Returns:
- TRUE if remote, otherwise FALSE
-
getIsGeo
public boolean getIsGeo()Returns whether this is a geolocation cache.- Returns:
- TRUE if geolocation, otherwise FALSE
-
hashCode
-
compareTo
- Specified by:
compareTo
in interfaceComparable<CacheInfo>
-
toString
-
getRowClassName
Description copied from interface:ViewEntry
Returns the CSS class for this object if rendered in a view table.- Specified by:
getRowClassName
in interfaceViewEntry
- Returns:
- the CSS class name, or NULL if none
-