com.hazelcast.core
Interface EntryView<K,V>

Type Parameters:
K - key
V - value
All Known Implementing Classes:
SimpleEntryView

public interface EntryView<K,V>

EntryView represents a readonly view of a map entry.


Method Summary
 long getCost()
          Returns the cost (in bytes) of the entry.
 long getCreationTime()
          Returns the creation time of the entry.
 long getExpirationTime()
          Returns the expiration time of the entry.
 long getHits()
          Returns number of hits of the entry.
 K getKey()
          Returns the key of the entry.
 long getLastAccessTime()
          Returns the last access time for the entry.
 long getLastStoredTime()
          Returns the last time the value was flushed to mapstore.
 long getLastUpdateTime()
          Returns the last time the value was updated.
 long getTtl()
          Returns the last set time to live second.
 V getValue()
          Returns the value of the entry.
 long getVersion()
          Returns the version of the entry
 

Method Detail

getKey

K getKey()
Returns the key of the entry.

Returns:
the key of the entry

getValue

V getValue()
Returns the value of the entry.

Returns:
the value of the entry

getCost

long getCost()
Returns the cost (in bytes) of the entry.

Warning:

This method returns -1 if statistics is not enabled.

Returns:
the cost in bytes of the entry

getCreationTime

long getCreationTime()
Returns the creation time of the entry.

Warning:

This method returns -1 if statistics is not enabled.

Returns:
the creation time of the entry

getExpirationTime

long getExpirationTime()
Returns the expiration time of the entry.

Returns:
the expiration time of the entry

getHits

long getHits()
Returns number of hits of the entry.

Warning:

ˆ This method returns -1 if statistics is not enabled.

Returns:
number of hits of the entry

getLastAccessTime

long getLastAccessTime()
Returns the last access time for the entry.

Warning:

ˆ This method returns -1 if statistics is not enabled.

Returns:
the last access time for the entry

getLastStoredTime

long getLastStoredTime()
Returns the last time the value was flushed to mapstore.

Warning:

ˆ This method returns -1 if statistics is not enabled.

Returns:
the last store time for the value

getLastUpdateTime

long getLastUpdateTime()
Returns the last time the value was updated.

Warning:

ˆ This method returns -1 if statistics is not enabled.

Returns:
the last time the value was updated

getVersion

long getVersion()
Returns the version of the entry

Returns:
the version of the entry

getTtl

long getTtl()
Returns the last set time to live second.

Returns:
the last set time to live second.


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.