public class EmptyRecordStatistics extends Object implements RecordStatistics
RecordStatistics
implementation which returns zero for all stats.EMPTY_STATS
Constructor and Description |
---|
EmptyRecordStatistics() |
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
|
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.