Interface ExtendedMapEntry<K,V>

Type Parameters:
K - key type
V - value type
All Superinterfaces:
Map.Entry<K,V>

public interface ExtendedMapEntry<K,V> extends Map.Entry<K,V>
Interface to provide parity with IMap set and put operations. For use in EntryProcessors.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    setValue(V value, long ttl, TimeUnit ttlUnit)
    Set the value and set the TTL to a non-default value for the IMap
    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

    Methods inherited from interface java.util.Map.Entry

    equals, getKey, getValue, hashCode, setValue
  • Method Details

    • setValue

      V setValue(V value, long ttl, 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