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

Type Parameters:
K - key
V - value

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 to the entry.
 long getLastStoredTime()
          Returns the last time value is flushed to mapstore.
 long getLastUpdateTime()
          Returns the last time value is updated.
 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:
key

getValue

V getValue()
Returns the value of the entry.

Returns:
value

getCost

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

Warning:

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

Returns:
cost in bytes

getCreationTime

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

Warning:

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

Returns:
creation time

getExpirationTime

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

Returns:
expiration time

getHits

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

Warning:

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

Returns:
hits

getLastAccessTime

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

Warning:

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

Returns:
last access time

getLastStoredTime

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

Warning:

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

Returns:
last store time

getLastUpdateTime

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

Warning:

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

Returns:
last update time

getVersion

long getVersion()
Returns the version of the entry

Returns:
version


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