com.hazelcast.map.impl.mapstore.writebehind
Class DelayedEntry<K,V>

java.lang.Object
  extended by 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.


Field Summary
protected  K key
           
protected  long storeTime
           
 
Method Summary
static
<K,V> DelayedEntry<K,V>
create(K key, V value, long storeTime)
           
static
<K,V> DelayedEntry<K,V>
create(K key, V value, long storeTime, int partitionId)
           
static
<K,V> DelayedEntry<K,V>
createWithNullKey(V value, long storeTime)
          Used to put staging area.
static
<K,V> DelayedEntry<K,V>
createWithNullValue(K key, long storeTime, int partitionId)
          Used to removal operations from map store.
 boolean equals(Object o)
           
 K getKey()
           
 int getPartitionId()
           
 long getStoreTime()
           
 V getValue()
           
 int hashCode()
           
 void setStoreTime(long storeTime)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

key

protected final K key

storeTime

protected long storeTime
Method Detail

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.