Package com.hazelcast.map
Interface ExtendedMapEntry<K,V>
-
- Type Parameters:
K
- key typeV
- value type
- All Superinterfaces:
java.util.Map.Entry<K,V>
public interface ExtendedMapEntry<K,V> extends java.util.Map.Entry<K,V>
Interface to provide parity with IMap set and put operations. For use in EntryProcessors.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description V
setValue(V value, long ttl, java.util.concurrent.TimeUnit ttlUnit)
Set the value and set the TTL to a non-default value for the IMapV
setValueWithoutChangingExpiryTime(V value)
Calling this method can result with one of these two cases: When there is no previous entry, this method works same asMap.Entry.setValue(V)
and creates entry with existing expiry settings When an entry already exists, it updates value without changing expiry time of it
-
-
-
Method Detail
-
setValue
V setValue(V value, long ttl, java.util.concurrent.TimeUnit ttlUnit)
Set the value and set the TTL to a non-default value for the IMap
-
setValueWithoutChangingExpiryTime
V setValueWithoutChangingExpiryTime(V value)
Calling this method can result with one of these two cases:- When there is no previous entry, this method
works same as
Map.Entry.setValue(V)
and creates entry with existing expiry settings - When an entry already exists, it updates value without changing expiry time of it
- Since:
- 5.2
- When there is no previous entry, this method
works same as
-
-