public class RecordInfo extends Object implements IdentifiedDataSerializable, Versioned
Modifier and Type | Field and Description |
---|---|
protected long |
creationTime |
protected long |
expirationTime |
protected long |
hits |
protected long |
lastAccessTime |
protected long |
lastStoredTime |
protected long |
lastUpdateTime |
protected long |
maxIdle |
protected long |
ttl |
protected long |
version |
Constructor and Description |
---|
RecordInfo() |
RecordInfo(RecordInfo recordInfo) |
Modifier and Type | Method and Description |
---|---|
long |
getCreationTime() |
long |
getExpirationTime() |
int |
getFactoryId()
Returns DataSerializableFactory factory ID for this class.
|
long |
getHits() |
int |
getId()
Returns type identifier for this class.
|
long |
getLastAccessTime() |
long |
getLastStoredTime() |
long |
getLastUpdateTime() |
long |
getMaxIdle() |
long |
getTtl() |
long |
getVersion() |
void |
readData(ObjectDataInput in)
Reads fields from the input stream
|
void |
setCreationTime(long creationTime) |
void |
setExpirationTime(long expirationTime) |
void |
setHits(long hits) |
void |
setLastAccessTime(long lastAccessTime) |
void |
setLastStoredTime(long lastStoredTime) |
void |
setLastUpdateTime(long lastUpdateTime) |
void |
setMaxIdle(long maxIdle) |
void |
setTtl(long ttl) |
void |
setVersion(long version) |
String |
toString() |
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream
|
protected long version
protected long ttl
protected long maxIdle
protected long creationTime
protected long lastAccessTime
protected long lastUpdateTime
protected long hits
protected long lastStoredTime
protected long expirationTime
public RecordInfo()
public RecordInfo(RecordInfo recordInfo)
public long getVersion()
public void setVersion(long version)
public long getHits()
public void setHits(long hits)
public long getTtl()
public void setTtl(long ttl)
public long getMaxIdle()
public void setMaxIdle(long maxIdle)
public long getCreationTime()
public void setCreationTime(long creationTime)
public long getLastAccessTime()
public void setLastAccessTime(long lastAccessTime)
public long getLastUpdateTime()
public void setLastUpdateTime(long lastUpdateTime)
public long getExpirationTime()
public void setExpirationTime(long expirationTime)
public long getLastStoredTime()
public void setLastStoredTime(long lastStoredTime)
public void writeData(ObjectDataOutput out) throws IOException
DataSerializable
writeData
in interface DataSerializable
out
- outputIOException
- if an I/O error occurs. In particular,
an IOException
may be thrown if the
output stream has been closed.public void readData(ObjectDataInput in) throws IOException
DataSerializable
readData
in interface DataSerializable
in
- inputIOException
- if an I/O error occurs. In particular,
an IOException
may be thrown if the
input stream has been closed.public int getFactoryId()
IdentifiedDataSerializable
getFactoryId
in interface IdentifiedDataSerializable
public int getId()
IdentifiedDataSerializable
getId
in interface IdentifiedDataSerializable
Copyright © 2018 Hazelcast, Inc.. All Rights Reserved.