com.hazelcast.client.txn.proxy
Class ClientTxnMapProxy<K,V>
java.lang.Object
com.hazelcast.client.txn.proxy.ClientTxnMapProxy<K,V>
- All Implemented Interfaces:
- BaseMap<K,V>, DistributedObject, TransactionalMap<K,V>, TransactionalObject
public class ClientTxnMapProxy<K,V>
- extends Object
- implements TransactionalMap<K,V>
- Author:
- ali 6/10/13
|
Method Summary |
boolean |
containsKey(Object key)
|
void |
delete(Object key)
|
void |
destroy()
|
V |
get(Object key)
|
V |
getForUpdate(Object key)
|
Object |
getId()
|
String |
getName()
|
String |
getPartitionKey()
|
String |
getServiceName()
|
boolean |
isEmpty()
|
Set<K> |
keySet()
|
Set<K> |
keySet(Predicate predicate)
|
V |
put(K key,
V value)
|
V |
put(K key,
V value,
long ttl,
TimeUnit timeunit)
|
V |
putIfAbsent(K key,
V value)
|
V |
remove(Object key)
|
boolean |
remove(Object key,
Object value)
|
V |
replace(K key,
V value)
|
boolean |
replace(K key,
V oldValue,
V newValue)
|
void |
set(K key,
V value)
|
int |
size()
|
Collection<V> |
values()
|
Collection<V> |
values(Predicate predicate)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClientTxnMapProxy
public ClientTxnMapProxy(String name,
TransactionContextProxy proxy)
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKey in interface BaseMap<K,V>- Specified by:
containsKey in interface TransactionalMap<K,V>
get
public V get(Object key)
- Specified by:
get in interface BaseMap<K,V>- Specified by:
get in interface TransactionalMap<K,V>
getForUpdate
public V getForUpdate(Object key)
- Specified by:
getForUpdate in interface TransactionalMap<K,V>
size
public int size()
- Specified by:
size in interface BaseMap<K,V>- Specified by:
size in interface TransactionalMap<K,V>
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty in interface BaseMap<K,V>- Specified by:
isEmpty in interface TransactionalMap<K,V>
put
public V put(K key,
V value)
- Specified by:
put in interface BaseMap<K,V>- Specified by:
put in interface TransactionalMap<K,V>
put
public V put(K key,
V value,
long ttl,
TimeUnit timeunit)
- Specified by:
put in interface TransactionalMap<K,V>
set
public void set(K key,
V value)
- Specified by:
set in interface BaseMap<K,V>- Specified by:
set in interface TransactionalMap<K,V>
putIfAbsent
public V putIfAbsent(K key,
V value)
- Specified by:
putIfAbsent in interface BaseMap<K,V>- Specified by:
putIfAbsent in interface TransactionalMap<K,V>
replace
public V replace(K key,
V value)
- Specified by:
replace in interface BaseMap<K,V>- Specified by:
replace in interface TransactionalMap<K,V>
replace
public boolean replace(K key,
V oldValue,
V newValue)
- Specified by:
replace in interface BaseMap<K,V>- Specified by:
replace in interface TransactionalMap<K,V>
remove
public V remove(Object key)
- Specified by:
remove in interface BaseMap<K,V>- Specified by:
remove in interface TransactionalMap<K,V>
delete
public void delete(Object key)
- Specified by:
delete in interface BaseMap<K,V>- Specified by:
delete in interface TransactionalMap<K,V>
remove
public boolean remove(Object key,
Object value)
- Specified by:
remove in interface BaseMap<K,V>- Specified by:
remove in interface TransactionalMap<K,V>
keySet
public Set<K> keySet()
- Specified by:
keySet in interface TransactionalMap<K,V>
keySet
public Set<K> keySet(Predicate predicate)
- Specified by:
keySet in interface TransactionalMap<K,V>
values
public Collection<V> values()
- Specified by:
values in interface TransactionalMap<K,V>
values
public Collection<V> values(Predicate predicate)
- Specified by:
values in interface TransactionalMap<K,V>
getName
public String getName()
- Specified by:
getName in interface DistributedObject
getServiceName
public String getServiceName()
- Specified by:
getServiceName in interface DistributedObject
destroy
public final void destroy()
- Specified by:
destroy in interface DistributedObject
getId
public Object getId()
- Specified by:
getId in interface DistributedObject
getPartitionKey
public String getPartitionKey()
- Specified by:
getPartitionKey in interface DistributedObject
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.