com.hazelcast.map.impl.mapstore.writebehind
Class DelayedEntry<K,V>
java.lang.Object
com.hazelcast.map.impl.mapstore.writebehind.DelayedEntry<K,V>
- Type Parameters:
K
- the key type.V
- the value type.
public final class DelayedEntry<K,V>
- extends Object
Store entry for delayed store operations.
key
protected final K key
storeTime
protected long storeTime
getValue
public V getValue()
create
public static <K,V> DelayedEntry<K,V> create(K key,
V value,
long storeTime,
int partitionId)
create
public static <K,V> DelayedEntry<K,V> create(K key,
V value,
long storeTime)
createWithNullKey
public static <K,V> DelayedEntry<K,V> createWithNullKey(V value,
long storeTime)
- Used to put staging area.
- Type Parameters:
K
- the key type.V
- the value type.- Parameters:
value
- to put.storeTime
- target store time
- Returns:
- new delayed entry object with a null key.
- See Also:
WriteBehindStore.stagingArea
createWithNullValue
public static <K,V> DelayedEntry<K,V> createWithNullValue(K key,
long storeTime,
int partitionId)
- Used to removal operations from map store.
- Type Parameters:
K
- the key type.V
- the value type.- Parameters:
key
- to put.storeTime
- target store time
- Returns:
- new delayed entry object with a null key.
hashCode
public int hashCode()
equals
public boolean equals(Object o)
toString
public String toString()
- Overrides:
toString
in class Object
getKey
public K getKey()
getStoreTime
public long getStoreTime()
setStoreTime
public void setStoreTime(long storeTime)
getPartitionId
public int getPartitionId()
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.