K
- the type of keyV
- the type of valuepublic class FullMergingEntryImpl<K,V> extends Object implements MergingEntry<K,V>, MergingCosts, MergingCreationTime, MergingExpirationTime, MergingHits, MergingLastAccessTime, MergingLastStoredTime, MergingLastUpdateTime, MergingVersion, MergingTTL, SerializationServiceAware, IdentifiedDataSerializable
MergingEntry
and all other merging type interfaces.Constructor and Description |
---|
FullMergingEntryImpl() |
FullMergingEntryImpl(SerializationService serializationService) |
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
|
FullMergingEntryImpl<K,V> |
setCost(long cost) |
FullMergingEntryImpl<K,V> |
setCreationTime(long creationTime) |
FullMergingEntryImpl<K,V> |
setExpirationTime(long expirationTime) |
FullMergingEntryImpl<K,V> |
setHits(long hits) |
FullMergingEntryImpl<K,V> |
setKey(K key) |
FullMergingEntryImpl<K,V> |
setLastAccessTime(long lastAccessTime) |
FullMergingEntryImpl<K,V> |
setLastStoredTime(long lastStoredTime) |
FullMergingEntryImpl<K,V> |
setLastUpdateTime(long lastUpdateTime) |
void |
setSerializationService(SerializationService serializationService)
Gets the SerializationService reference injected.
|
FullMergingEntryImpl<K,V> |
setTtl(long ttl) |
FullMergingEntryImpl<K,V> |
setValue(V value) |
FullMergingEntryImpl<K,V> |
setVersion(long version) |
String |
toString() |
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream
|
public FullMergingEntryImpl()
public FullMergingEntryImpl(SerializationService serializationService)
public V getValue()
MergingValue
getValue
in interface MergingValue<V>
public Object getDeserializedValue()
MergingValue
getDeserializedValue
in interface MergingValue<V>
public FullMergingEntryImpl<K,V> setValue(V value)
public K getKey()
MergingEntry
getKey
in interface MergingEntry<K,V>
public Object getDeserializedKey()
MergingEntry
getDeserializedKey
in interface MergingEntry<K,V>
public FullMergingEntryImpl<K,V> setKey(K key)
public long getCost()
MergingCosts
getCost
in interface MergingCosts
public FullMergingEntryImpl<K,V> setCost(long cost)
public long getCreationTime()
MergingCreationTime
getCreationTime
in interface MergingCreationTime
public FullMergingEntryImpl<K,V> setCreationTime(long creationTime)
public long getExpirationTime()
MergingExpirationTime
getExpirationTime
in interface MergingExpirationTime
public FullMergingEntryImpl<K,V> setExpirationTime(long expirationTime)
public long getHits()
MergingHits
getHits
in interface MergingHits
public FullMergingEntryImpl<K,V> setHits(long hits)
public long getLastAccessTime()
MergingLastAccessTime
getLastAccessTime
in interface MergingLastAccessTime
public FullMergingEntryImpl<K,V> setLastAccessTime(long lastAccessTime)
public long getLastStoredTime()
MergingLastStoredTime
getLastStoredTime
in interface MergingLastStoredTime
public FullMergingEntryImpl<K,V> setLastStoredTime(long lastStoredTime)
public long getLastUpdateTime()
MergingLastUpdateTime
getLastUpdateTime
in interface MergingLastUpdateTime
public FullMergingEntryImpl<K,V> setLastUpdateTime(long lastUpdateTime)
public long getVersion()
MergingVersion
getVersion
in interface MergingVersion
public FullMergingEntryImpl<K,V> setVersion(long version)
public long getTtl()
MergingTTL
getTtl
in interface MergingTTL
public FullMergingEntryImpl<K,V> setTtl(long ttl)
public void setSerializationService(SerializationService serializationService)
SerializationServiceAware
setSerializationService
in interface SerializationServiceAware
serializationService
- the SerializationService referencepublic 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.