com.hazelcast.client.nearcache
Class ClientHeapNearCache<K>

java.lang.Object
  extended by com.hazelcast.client.nearcache.ClientHeapNearCache<K>
Type Parameters:
K -
All Implemented Interfaces:
ClientNearCache<K,Object>

public class ClientHeapNearCache<K>
extends Object
implements ClientNearCache<K,Object>

Implementation of the ClientNearCache.

todo: improve javadoc.


Field Summary
 
Fields inherited from interface com.hazelcast.client.nearcache.ClientNearCache
EVICTION_PERCENTAGE, NULL_OBJECT, TTL_CLEANUP_INTERVAL_MILLS
 
Constructor Summary
ClientHeapNearCache(String mapName, ClientContext context, NearCacheConfig nearCacheConfig)
           
 
Method Summary
 void clear()
           
 void destroy()
           
 Object get(K key)
           
 String getId()
           
 InMemoryFormat getInMemoryFormat()
           
 NearCacheStatsImpl getNearCacheStats()
           
 void invalidate(K key)
           
 boolean isInvalidateOnChange()
           
 void put(K key, Object object)
           
 void remove(K key)
           
 void setId(String id)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientHeapNearCache

public ClientHeapNearCache(String mapName,
                           ClientContext context,
                           NearCacheConfig nearCacheConfig)
Method Detail

setId

public void setId(String id)
Specified by:
setId in interface ClientNearCache<K,Object>

getId

public String getId()
Specified by:
getId in interface ClientNearCache<K,Object>

put

public void put(K key,
                Object object)
Specified by:
put in interface ClientNearCache<K,Object>

get

public Object get(K key)
Specified by:
get in interface ClientNearCache<K,Object>

remove

public void remove(K key)
Specified by:
remove in interface ClientNearCache<K,Object>

invalidate

public void invalidate(K key)
Specified by:
invalidate in interface ClientNearCache<K,Object>

getNearCacheStats

public NearCacheStatsImpl getNearCacheStats()
Specified by:
getNearCacheStats in interface ClientNearCache<K,Object>

clear

public void clear()
Specified by:
clear in interface ClientNearCache<K,Object>

destroy

public void destroy()
Specified by:
destroy in interface ClientNearCache<K,Object>

isInvalidateOnChange

public boolean isInvalidateOnChange()
Specified by:
isInvalidateOnChange in interface ClientNearCache<K,Object>

getInMemoryFormat

public InMemoryFormat getInMemoryFormat()
Specified by:
getInMemoryFormat in interface ClientNearCache<K,Object>


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