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()
MergingValuegetValue in interface MergingValue<V>public Object getDeserializedValue()
MergingValuegetDeserializedValue in interface MergingValue<V>public FullMergingEntryImpl<K,V> setValue(V value)
public K getKey()
MergingEntrygetKey in interface MergingEntry<K,V>public Object getDeserializedKey()
MergingEntrygetDeserializedKey in interface MergingEntry<K,V>public FullMergingEntryImpl<K,V> setKey(K key)
public long getCost()
MergingCostsgetCost in interface MergingCostspublic FullMergingEntryImpl<K,V> setCost(long cost)
public long getCreationTime()
MergingCreationTimegetCreationTime in interface MergingCreationTimepublic FullMergingEntryImpl<K,V> setCreationTime(long creationTime)
public long getExpirationTime()
MergingExpirationTimegetExpirationTime in interface MergingExpirationTimepublic FullMergingEntryImpl<K,V> setExpirationTime(long expirationTime)
public long getHits()
MergingHitsgetHits in interface MergingHitspublic FullMergingEntryImpl<K,V> setHits(long hits)
public long getLastAccessTime()
MergingLastAccessTimegetLastAccessTime in interface MergingLastAccessTimepublic FullMergingEntryImpl<K,V> setLastAccessTime(long lastAccessTime)
public long getLastStoredTime()
MergingLastStoredTimegetLastStoredTime in interface MergingLastStoredTimepublic FullMergingEntryImpl<K,V> setLastStoredTime(long lastStoredTime)
public long getLastUpdateTime()
MergingLastUpdateTimegetLastUpdateTime in interface MergingLastUpdateTimepublic FullMergingEntryImpl<K,V> setLastUpdateTime(long lastUpdateTime)
public long getVersion()
MergingVersiongetVersion in interface MergingVersionpublic FullMergingEntryImpl<K,V> setVersion(long version)
public long getTtl()
MergingTTLgetTtl in interface MergingTTLpublic FullMergingEntryImpl<K,V> setTtl(long ttl)
public void setSerializationService(SerializationService serializationService)
SerializationServiceAwaresetSerializationService in interface SerializationServiceAwareserializationService - the SerializationService referencepublic void writeData(ObjectDataOutput out) throws IOException
DataSerializablewriteData in interface DataSerializableout - 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
DataSerializablereadData in interface DataSerializablein - inputIOException - if an I/O error occurs. In particular,
an IOException may be thrown if the
input stream has been closed.public int getFactoryId()
IdentifiedDataSerializablegetFactoryId in interface IdentifiedDataSerializablepublic int getId()
IdentifiedDataSerializablegetId in interface IdentifiedDataSerializableCopyright © 2018 Hazelcast, Inc.. All Rights Reserved.