public class CacheStat extends Object
Modifier and Type | Field and Description |
---|---|
protected AtomicLong |
cacheHitCount |
protected Long |
lastLogTime |
protected AtomicLong |
requestCount |
Constructor and Description |
---|
CacheStat() |
Modifier and Type | Method and Description |
---|---|
Long |
getCacheHitCount() |
BigDecimal |
getHitRate() |
Long |
getLastLogTime() |
Long |
getRequestCount() |
void |
incrementHit() |
void |
incrementRequest() |
void |
setLastLogTime(Long lastLogTime) |
protected AtomicLong requestCount
protected AtomicLong cacheHitCount
protected Long lastLogTime
public Long getCacheHitCount()
public Long getLastLogTime()
public void setLastLogTime(Long lastLogTime)
public Long getRequestCount()
public void incrementRequest()
public void incrementHit()
public BigDecimal getHitRate()
Copyright © 2022. All rights reserved.