public class RecordStatisticsImpl extends Object implements RecordStatistics
Record
Modifier and Type | Field and Description |
---|---|
protected long |
expirationTime |
protected int |
hits |
protected long |
lastStoredTime |
EMPTY_STATS
Constructor and Description |
---|
RecordStatisticsImpl() |
Modifier and Type | Method and Description |
---|---|
void |
access() |
long |
getExpirationTime() |
int |
getHits() |
long |
getLastStoredTime() |
long |
getMemoryCost() |
void |
readData(ObjectDataInput in)
Reads fields from the input stream
|
void |
setExpirationTime(long expirationTime) |
void |
setHits(int hits) |
void |
setLastStoredTime(long lastStoredTime) |
void |
store() |
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream
|
protected volatile int hits
protected long lastStoredTime
protected long expirationTime
public int getHits()
getHits
in interface RecordStatistics
public void setHits(int hits)
setHits
in interface RecordStatistics
public long getExpirationTime()
getExpirationTime
in interface RecordStatistics
public void setExpirationTime(long expirationTime)
setExpirationTime
in interface RecordStatistics
public void access()
access
in interface RecordStatistics
public void store()
store
in interface RecordStatistics
public long getLastStoredTime()
getLastStoredTime
in interface RecordStatistics
public void setLastStoredTime(long lastStoredTime)
setLastStoredTime
in interface RecordStatistics
public long getMemoryCost()
getMemoryCost
in interface RecordStatistics
public void writeData(ObjectDataOutput out) throws IOException
DataSerializable
writeData
in interface DataSerializable
out
- outputIOException
public void readData(ObjectDataInput in) throws IOException
DataSerializable
readData
in interface DataSerializable
in
- inputIOException
Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.