public class ReplicatedMapEntryView<K,V> extends Object implements EntryView, IdentifiedDataSerializable, Versioned
Constructor and Description |
---|
ReplicatedMapEntryView() |
ReplicatedMapEntryView(SerializationService serializationService) |
Modifier and Type | Method and Description |
---|---|
long |
getCost()
Returns the cost (in bytes) of the entry.
|
long |
getCreationTime()
Returns the creation time of the entry.
|
long |
getExpirationTime()
Returns the expiration time of the entry.
|
int |
getFactoryId()
Returns DataSerializableFactory factory ID for this class.
|
long |
getHits()
Returns number of hits of the entry.
|
int |
getId()
Returns type identifier for this class.
|
K |
getKey()
Returns the key of the entry.
|
long |
getLastAccessTime()
Returns the last access time for the entry.
|
long |
getLastStoredTime()
Returns the last time the value was flushed to its store (e.g.
|
long |
getLastUpdateTime()
Returns the last time the value was updated.
|
Long |
getMaxIdle()
Returns the last set max idle time in milliseconds.
|
long |
getTtl()
Returns the last set time to live in milliseconds.
|
V |
getValue()
Returns the value of the entry.
|
long |
getVersion()
Returns the version of the entry.
|
void |
readData(ObjectDataInput in)
Reads fields from the input stream
|
ReplicatedMapEntryView<K,V> |
setCreationTime(long creationTime) |
ReplicatedMapEntryView<K,V> |
setHits(long hits) |
ReplicatedMapEntryView<K,V> |
setKey(K key) |
ReplicatedMapEntryView<K,V> |
setLastAccessTime(long lastAccessTime) |
ReplicatedMapEntryView<K,V> |
setLastUpdateTime(long lastUpdateTime) |
ReplicatedMapEntryView<K,V> |
setTtl(long ttl) |
ReplicatedMapEntryView<K,V> |
setValue(V value) |
String |
toString() |
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream
|
public ReplicatedMapEntryView()
public ReplicatedMapEntryView(SerializationService serializationService)
public ReplicatedMapEntryView<K,V> setKey(K key)
public V getValue()
EntryView
public ReplicatedMapEntryView<K,V> setValue(V value)
public long getCost()
EntryView
Warning: This method returns -1
if statistics are not enabled or not implemented.
public long getCreationTime()
EntryView
Warning: This method returns -1
if statistics are not enabled or not implemented.
getCreationTime
in interface EntryView
public ReplicatedMapEntryView<K,V> setCreationTime(long creationTime)
public long getExpirationTime()
EntryView
getExpirationTime
in interface EntryView
public long getHits()
EntryView
Warning: This method returns -1
if statistics are not enabled or not implemented.
public ReplicatedMapEntryView<K,V> setHits(long hits)
public long getLastAccessTime()
EntryView
Warning: This method returns -1
if statistics are not enabled or not implemented.
getLastAccessTime
in interface EntryView
public ReplicatedMapEntryView<K,V> setLastAccessTime(long lastAccessTime)
public long getLastStoredTime()
EntryView
MapStore
).
Warning: This method returns -1
if statistics are not enabled or not implemented.
getLastStoredTime
in interface EntryView
public long getLastUpdateTime()
EntryView
Warning: This method returns -1
if statistics are not enabled or not implemented.
getLastUpdateTime
in interface EntryView
public ReplicatedMapEntryView<K,V> setLastUpdateTime(long lastUpdateTime)
public long getVersion()
EntryView
getVersion
in interface EntryView
public long getTtl()
EntryView
public Long getMaxIdle()
EntryView
getMaxIdle
in interface EntryView
public ReplicatedMapEntryView<K,V> setTtl(long ttl)
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 © 2021 Hazelcast, Inc.. All Rights Reserved.