org.broadleafcommerce.common.cache
Class CacheStat

java.lang.Object
  extended by org.broadleafcommerce.common.cache.CacheStat

public class CacheStat
extends Object

Author:
Jeff Fischer

Field Summary
protected  AtomicLong cacheHitCount
           
protected  Long lastLogTime
           
protected  AtomicLong requestCount
           
 
Constructor Summary
CacheStat()
           
 
Method Summary
 Long getCacheHitCount()
           
 BigDecimal getHitRate()
           
 Long getLastLogTime()
           
 Long getRequestCount()
           
 void incrementHit()
           
 void incrementRequest()
           
 void setLastLogTime(Long lastLogTime)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

requestCount

protected AtomicLong requestCount

cacheHitCount

protected AtomicLong cacheHitCount

lastLogTime

protected Long lastLogTime
Constructor Detail

CacheStat

public CacheStat()
Method Detail

getCacheHitCount

public Long getCacheHitCount()

getLastLogTime

public Long getLastLogTime()

setLastLogTime

public void setLastLogTime(Long lastLogTime)

getRequestCount

public Long getRequestCount()

incrementRequest

public void incrementRequest()

incrementHit

public void incrementHit()

getHitRate

public BigDecimal getHitRate()


Copyright © 2013. All Rights Reserved.