K
- the type of keyV
- the type of valuepublic class FullMergingEntryHolderImpl<K,V> extends Object implements MergingEntryHolder<K,V>, CostHolder, CreationTimeHolder, ExpirationTimeHolder, HitsHolder, LastAccessTimeHolder, LastStoredTimeHolder, LastUpdateTimeHolder, VersionHolder, TtlHolder, IdentifiedDataSerializable
MergingValueHolder
and all other data holder interfaces.Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
long |
getCost()
Returns the memory cost of the merge data.
|
long |
getCreationTime()
Returns the creation time of the merge data.
|
Object |
getDeserializedKey()
Returns the deserialized merging key.
|
Object |
getDeserializedValue()
Returns the deserialized merging value.
|
long |
getExpirationTime()
Returns the expiration time of the merge data.
|
int |
getFactoryId()
Returns DataSerializableFactory factory ID for this class.
|
long |
getHits()
Returns the access hits of the merge data.
|
int |
getId()
Returns type identifier for this class.
|
K |
getKey()
Returns the merging key in the in-memory format of the backing data structure.
|
long |
getLastAccessTime()
Returns the last access time of the merge data.
|
long |
getLastStoredTime()
Returns the last stored time of the merge data.
|
long |
getLastUpdateTime()
Returns the last update time of the merge data.
|
long |
getTtl()
Returns the TTL of the merge data.
|
V |
getValue()
Returns the merging value in the in-memory format of the backing data structure.
|
long |
getVersion()
Returns the version of the merge data.
|
int |
hashCode() |
void |
readData(ObjectDataInput in)
Reads fields from the input stream
|
FullMergingEntryHolderImpl<K,V> |
setCost(long cost) |
FullMergingEntryHolderImpl<K,V> |
setCreationTime(long creationTime) |
FullMergingEntryHolderImpl<K,V> |
setExpirationTime(long expirationTime) |
FullMergingEntryHolderImpl<K,V> |
setHits(long hits) |
FullMergingEntryHolderImpl<K,V> |
setKey(K key) |
FullMergingEntryHolderImpl<K,V> |
setLastAccessTime(long lastAccessTime) |
FullMergingEntryHolderImpl<K,V> |
setLastStoredTime(long lastStoredTime) |
FullMergingEntryHolderImpl<K,V> |
setLastUpdateTime(long lastUpdateTime) |
void |
setSerializationService(SerializationService serializationService)
Sets the
SerializationService to deserialize the value on demand. |
FullMergingEntryHolderImpl<K,V> |
setTtl(long ttl) |
FullMergingEntryHolderImpl<K,V> |
setValue(V value) |
FullMergingEntryHolderImpl<K,V> |
setVersion(long version) |
String |
toString() |
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream
|
public V getValue()
MergingValueHolder
getValue
in interface MergingValueHolder<V>
public Object getDeserializedValue()
MergingValueHolder
getDeserializedValue
in interface MergingValueHolder<V>
public void setSerializationService(SerializationService serializationService)
MergingValueHolder
SerializationService
to deserialize the value on demand.setSerializationService
in interface MergingValueHolder<V>
serializationService
- the serialization servicepublic FullMergingEntryHolderImpl<K,V> setValue(V value)
public K getKey()
MergingEntryHolder
getKey
in interface MergingEntryHolder<K,V>
public Object getDeserializedKey()
MergingEntryHolder
getDeserializedKey
in interface MergingEntryHolder<K,V>
public FullMergingEntryHolderImpl<K,V> setKey(K key)
public long getCost()
CostHolder
getCost
in interface CostHolder
public FullMergingEntryHolderImpl<K,V> setCost(long cost)
public long getCreationTime()
CreationTimeHolder
getCreationTime
in interface CreationTimeHolder
public FullMergingEntryHolderImpl<K,V> setCreationTime(long creationTime)
public long getExpirationTime()
ExpirationTimeHolder
getExpirationTime
in interface ExpirationTimeHolder
public FullMergingEntryHolderImpl<K,V> setExpirationTime(long expirationTime)
public long getHits()
HitsHolder
getHits
in interface HitsHolder
public FullMergingEntryHolderImpl<K,V> setHits(long hits)
public long getLastAccessTime()
LastAccessTimeHolder
getLastAccessTime
in interface LastAccessTimeHolder
public FullMergingEntryHolderImpl<K,V> setLastAccessTime(long lastAccessTime)
public long getLastStoredTime()
LastStoredTimeHolder
getLastStoredTime
in interface LastStoredTimeHolder
public FullMergingEntryHolderImpl<K,V> setLastStoredTime(long lastStoredTime)
public long getLastUpdateTime()
LastUpdateTimeHolder
getLastUpdateTime
in interface LastUpdateTimeHolder
public FullMergingEntryHolderImpl<K,V> setLastUpdateTime(long lastUpdateTime)
public long getVersion()
VersionHolder
getVersion
in interface VersionHolder
public FullMergingEntryHolderImpl<K,V> setVersion(long version)
public long getTtl()
TtlHolder
public FullMergingEntryHolderImpl<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 © 2018 Hazelcast, Inc.. All Rights Reserved.