com.hazelcast.client
Class MapClientProxy<K,V>

java.lang.Object
  extended by com.hazelcast.client.MapClientProxy<K,V>
All Implemented Interfaces:
EntryHolder, IMap<K,V>, Instance, ConcurrentMap<K,V>, Map<K,V>

public class MapClientProxy<K,V>
extends Object
implements IMap<K,V>, EntryHolder


Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Nested classes/interfaces inherited from interface com.hazelcast.core.Instance
Instance.InstanceType
 
Constructor Summary
MapClientProxy(HazelcastClient client, String name)
           
 
Method Summary
 void addEntryListener(EntryListener<K,V> listener, boolean includeValue)
           
 void addEntryListener(EntryListener<K,V> listener, K key, boolean includeValue)
           
 void addIndex(Expression<?> expression, boolean ordered)
           
 void addIndex(String attribute, boolean ordered)
           
 void addLocalEntryListener(EntryListener<K,V> listener)
           
 void clear()
           
 boolean containsKey(Object arg0)
           
 boolean containsValue(Object arg0)
           
 void destroy()
           
 Set<Map.Entry<K,V>> entrySet()
           
 Set<Map.Entry<K,V>> entrySet(Predicate predicate)
           
 boolean equals(Object o)
           
 boolean evict(Object key)
           
 void flush()
           
 V get(Object key)
           
 Map<K,V> getAll(Set<K> setKeys)
           
 Future<V> getAsync(K key)
           
 Object getId()
           
 Instance.InstanceType getInstanceType()
           
 LocalMapStats getLocalMapStats()
           
 MapEntry<K,V> getMapEntry(K key)
           
 String getName()
           
 int hashCode()
           
 boolean isEmpty()
           
 Set<K> keySet()
           
 Set<K> keySet(Predicate predicate)
           
 Set<K> localKeySet()
           
 Set<K> localKeySet(Predicate predicate)
           
 void lock(K key)
           
 boolean lockMap(long time, TimeUnit timeunit)
           
 V put(K key, V value)
           
 V put(K key, V value, long ttl, TimeUnit timeunit)
           
 void putAll(Map<? extends K,? extends V> map)
           
 void putAndUnlock(K key, V value)
           
 Future<V> putAsync(K key, V value)
           
 V putIfAbsent(K key, V value)
           
 V putIfAbsent(K key, V value, long ttl, TimeUnit timeunit)
           
 void putTransient(K key, V value, long ttl, TimeUnit timeunit)
           
 V remove(Object arg0)
           
 boolean remove(Object arg0, Object arg1)
           
 Future<V> removeAsync(K key)
           
 void removeEntryListener(EntryListener<K,V> listener)
           
 void removeEntryListener(EntryListener<K,V> listener, K key)
           
 V replace(K arg0, V arg1)
           
 boolean replace(K arg0, V arg1, V arg2)
           
 int size()
           
 boolean tryLock(K key)
           
 boolean tryLock(K key, long time, TimeUnit timeunit)
           
 V tryLockAndGet(K key, long timeout, TimeUnit timeunit)
           
 boolean tryPut(K key, V value, long timeout, TimeUnit timeunit)
           
 Object tryRemove(K key, long timeout, TimeUnit timeunit)
           
 void unlock(K key)
           
 void unlockMap()
           
 Collection<V> values()
           
 Collection<V> values(Predicate predicate)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapClientProxy

public MapClientProxy(HazelcastClient client,
                      String name)
Method Detail

addLocalEntryListener

public void addLocalEntryListener(EntryListener<K,V> listener)
Specified by:
addLocalEntryListener in interface IMap<K,V>

addEntryListener

public void addEntryListener(EntryListener<K,V> listener,
                             boolean includeValue)
Specified by:
addEntryListener in interface IMap<K,V>

addEntryListener

public void addEntryListener(EntryListener<K,V> listener,
                             K key,
                             boolean includeValue)
Specified by:
addEntryListener in interface IMap<K,V>

removeEntryListener

public void removeEntryListener(EntryListener<K,V> listener)
Specified by:
removeEntryListener in interface IMap<K,V>

removeEntryListener

public void removeEntryListener(EntryListener<K,V> listener,
                                K key)
Specified by:
removeEntryListener in interface IMap<K,V>

entrySet

public Set<Map.Entry<K,V>> entrySet(Predicate predicate)
Specified by:
entrySet in interface IMap<K,V>

flush

public void flush()
Specified by:
flush in interface IMap<K,V>

evict

public boolean evict(Object key)
Specified by:
evict in interface IMap<K,V>

getMapEntry

public MapEntry<K,V> getMapEntry(K key)
Specified by:
getMapEntry in interface IMap<K,V>

keySet

public Set<K> keySet(Predicate predicate)
Specified by:
keySet in interface IMap<K,V>

lockMap

public boolean lockMap(long time,
                       TimeUnit timeunit)
Specified by:
lockMap in interface IMap<K,V>

unlockMap

public void unlockMap()
Specified by:
unlockMap in interface IMap<K,V>

lock

public void lock(K key)
Specified by:
lock in interface IMap<K,V>

tryLock

public boolean tryLock(K key)
Specified by:
tryLock in interface IMap<K,V>

tryLockAndGet

public V tryLockAndGet(K key,
                       long timeout,
                       TimeUnit timeunit)
                throws TimeoutException
Specified by:
tryLockAndGet in interface IMap<K,V>
Throws:
TimeoutException

putAndUnlock

public void putAndUnlock(K key,
                         V value)
Specified by:
putAndUnlock in interface IMap<K,V>

tryLock

public boolean tryLock(K key,
                       long time,
                       TimeUnit timeunit)
Specified by:
tryLock in interface IMap<K,V>

unlock

public void unlock(K key)
Specified by:
unlock in interface IMap<K,V>

values

public Collection<V> values(Predicate predicate)
Specified by:
values in interface IMap<K,V>

putIfAbsent

public V putIfAbsent(K key,
                     V value,
                     long ttl,
                     TimeUnit timeunit)
Specified by:
putIfAbsent in interface IMap<K,V>

putIfAbsent

public V putIfAbsent(K key,
                     V value)
Specified by:
putIfAbsent in interface ConcurrentMap<K,V>

remove

public boolean remove(Object arg0,
                      Object arg1)
Specified by:
remove in interface EntryHolder
Specified by:
remove in interface ConcurrentMap<K,V>

replace

public V replace(K arg0,
                 V arg1)
Specified by:
replace in interface ConcurrentMap<K,V>

replace

public boolean replace(K arg0,
                       V arg1,
                       V arg2)
Specified by:
replace in interface ConcurrentMap<K,V>

clear

public void clear()
Specified by:
clear in interface Map<K,V>

containsKey

public boolean containsKey(Object arg0)
Specified by:
containsKey in interface Map<K,V>

containsValue

public boolean containsValue(Object arg0)
Specified by:
containsValue in interface EntryHolder
Specified by:
containsValue in interface Map<K,V>

entrySet

public Set<Map.Entry<K,V>> entrySet()
Specified by:
entrySet in interface Map<K,V>

get

public V get(Object key)
Specified by:
get in interface EntryHolder
Specified by:
get in interface Map<K,V>

getAll

public Map<K,V> getAll(Set<K> setKeys)
Specified by:
getAll in interface IMap<K,V>

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Map<K,V>

localKeySet

public Set<K> localKeySet()
Specified by:
localKeySet in interface IMap<K,V>

localKeySet

public Set<K> localKeySet(Predicate predicate)
Specified by:
localKeySet in interface IMap<K,V>

getLocalMapStats

public LocalMapStats getLocalMapStats()
Specified by:
getLocalMapStats in interface IMap<K,V>

keySet

public Set<K> keySet()
Specified by:
keySet in interface Map<K,V>

getAsync

public Future<V> getAsync(K key)
Specified by:
getAsync in interface IMap<K,V>

putAsync

public Future<V> putAsync(K key,
                          V value)
Specified by:
putAsync in interface IMap<K,V>

removeAsync

public Future<V> removeAsync(K key)
Specified by:
removeAsync in interface IMap<K,V>

put

public V put(K key,
             V value)
Specified by:
put in interface Map<K,V>

put

public V put(K key,
             V value,
             long ttl,
             TimeUnit timeunit)
Specified by:
put in interface IMap<K,V>

putTransient

public void putTransient(K key,
                         V value,
                         long ttl,
                         TimeUnit timeunit)
Specified by:
putTransient in interface IMap<K,V>

tryPut

public boolean tryPut(K key,
                      V value,
                      long timeout,
                      TimeUnit timeunit)
Specified by:
tryPut in interface IMap<K,V>

putAll

public void putAll(Map<? extends K,? extends V> map)
Specified by:
putAll in interface Map<K,V>

remove

public V remove(Object arg0)
Specified by:
remove in interface EntryHolder
Specified by:
remove in interface Map<K,V>

tryRemove

public Object tryRemove(K key,
                        long timeout,
                        TimeUnit timeunit)
                 throws TimeoutException
Specified by:
tryRemove in interface IMap<K,V>
Throws:
TimeoutException

size

public int size()
Specified by:
size in interface EntryHolder
Specified by:
size in interface Map<K,V>

values

public Collection<V> values()
Specified by:
values in interface Map<K,V>

getId

public Object getId()
Specified by:
getId in interface Instance

getInstanceType

public Instance.InstanceType getInstanceType()
Specified by:
getInstanceType in interface Instance

addIndex

public void addIndex(String attribute,
                     boolean ordered)
Specified by:
addIndex in interface IMap<K,V>

addIndex

public void addIndex(Expression<?> expression,
                     boolean ordered)
Specified by:
addIndex in interface IMap<K,V>

getName

public String getName()
Specified by:
getName in interface IMap<K,V>

destroy

public void destroy()
Specified by:
destroy in interface Instance

equals

public boolean equals(Object o)
Specified by:
equals in interface Map<K,V>
Overrides:
equals in class Object

hashCode

public int hashCode()
Specified by:
hashCode in interface Map<K,V>
Overrides:
hashCode in class Object


Copyright © 2012 Hazel Bilisim Ltd.. All Rights Reserved.