|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.hazelcast.spi.AbstractDistributedObject<MapService>
com.hazelcast.map.impl.tx.TransactionalMapProxySupport
com.hazelcast.map.impl.tx.TransactionalMapProxy
public class TransactionalMapProxy
Proxy implementation of TransactionalMap interface.
| Field Summary |
|---|
| Fields inherited from class com.hazelcast.map.impl.tx.TransactionalMapProxySupport |
|---|
name, partitionStrategy, tx, valueMap |
| Fields inherited from class com.hazelcast.spi.AbstractDistributedObject |
|---|
PARTITIONING_STRATEGY |
| Constructor Summary | |
|---|---|
TransactionalMapProxy(String name,
MapService mapService,
NodeEngine nodeEngine,
TransactionSupport transaction)
|
|
| Method Summary | |
|---|---|
boolean |
containsKey(Object key)
Transactional implementation of IMap.containsKey(Object). |
void |
delete(Object key)
Transactional implementation of IMap.delete(Object). |
Object |
get(Object key)
Transactional implementation of IMap.get(Object). |
Object |
getForUpdate(Object key)
Locks the key and then gets and returns the value to which the specified key is mapped. |
boolean |
isEmpty()
Transactional implementation of Map.isEmpty(). |
Set<Object> |
keySet()
Transactional implementation of IMap.keySet(). |
Set |
keySet(Predicate predicate)
Transactional implementation of IMap.keySet(com.hazelcast.query.Predicate). |
Object |
put(Object key,
Object value)
Transactional implementation of IMap.put(Object, Object). |
Object |
put(Object key,
Object value,
long ttl,
TimeUnit timeUnit)
Transactional implementation of IMap.put(Object, Object, long, java.util.concurrent.TimeUnit). |
Object |
putIfAbsent(Object key,
Object value)
Transactional implementation of IMap.putIfAbsent(Object, Object). |
Object |
remove(Object key)
Transactional implementation of IMap.remove(Object). |
boolean |
remove(Object key,
Object value)
Transactional implementation of IMap.remove(Object, Object). |
Object |
replace(Object key,
Object value)
Transactional implementation of IMap.replace(Object, Object). |
boolean |
replace(Object key,
Object oldValue,
Object newValue)
Transactional implementation of IMap.replace(Object, Object, Object). |
void |
set(Object key,
Object value)
Transactional implementation of IMap.set(Object, Object). |
int |
size()
Transactional implementation of Map.size(). |
String |
toString()
|
Collection<Object> |
values()
Transactional implementation of IMap.values(). |
Collection |
values(Predicate predicate)
Transactional implementation of IMap.values(com.hazelcast.query.Predicate). |
| Methods inherited from class com.hazelcast.map.impl.tx.TransactionalMapProxySupport |
|---|
checkTransactionState, containsKeyInternal, getEntries, getForUpdateInternal, getInternal, getName, getServiceName, getTimeInMillis, keySetInternal, putIfAbsentInternal, putInternal, putInternal, queryInternal, removeIfSameInternal, removeInternal, replaceIfSameInternal, replaceInternal, sizeInternal |
| Methods inherited from class com.hazelcast.spi.AbstractDistributedObject |
|---|
destroy, equals, getId, getNameAsPartitionAwareData, getNodeEngine, getOperationService, getPartitionKey, getService, hashCode, invalidate, postDestroy, throwNotActiveException |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.hazelcast.core.DistributedObject |
|---|
destroy, getId, getName, getPartitionKey, getServiceName |
| Constructor Detail |
|---|
public TransactionalMapProxy(String name,
MapService mapService,
NodeEngine nodeEngine,
TransactionSupport transaction)
| Method Detail |
|---|
public boolean containsKey(Object key)
TransactionalMapIMap.containsKey(Object).
containsKey in interface BaseMapcontainsKey in interface TransactionalMapkey - The specified key.
true if this map contains an entry for the specified key.IMap.containsKey(Object)public int size()
TransactionalMapMap.size().
size in interface BaseMapsize in interface TransactionalMapMap.size()public boolean isEmpty()
TransactionalMapMap.isEmpty().
isEmpty in interface BaseMapisEmpty in interface TransactionalMapMap.isEmpty()public Object get(Object key)
TransactionalMapIMap.get(Object).
get in interface BaseMapget in interface TransactionalMapkey - The specified key.
IMap.get(Object)public Object getForUpdate(Object key)
TransactionalMap
getForUpdate in interface TransactionalMapIMap.get(Object)
public Object put(Object key,
Object value)
TransactionalMapIMap.put(Object, Object).
The object to be put will be accessible only in the current transaction context till transaction is committed.
put in interface BaseMapput in interface TransactionalMapkey - The specified key.value - The value to associate with the key.
key or null
if there was no mapping for key.IMap.put(Object, Object)
public Object put(Object key,
Object value,
long ttl,
TimeUnit timeUnit)
TransactionalMapIMap.put(Object, Object, long, java.util.concurrent.TimeUnit).
The object to be put will be accessible only in the current transaction context till transaction is committed.
put in interface TransactionalMapIMap.put(Object, Object, long, java.util.concurrent.TimeUnit)
public void set(Object key,
Object value)
TransactionalMapIMap.set(Object, Object).
The object to be set will be accessible only in the current transaction context till transaction is committed.
set in interface BaseMapset in interface TransactionalMapkey - The specified key.value - The value to associate with the key.IMap.set(Object, Object)
public Object putIfAbsent(Object key,
Object value)
TransactionalMapIMap.putIfAbsent(Object, Object).
The object to be put will be accessible only in the current transaction context until the transaction is committed.
putIfAbsent in interface BaseMapputIfAbsent in interface TransactionalMapkey - The specified key.value - The value to associate with the key when there is no previous value.
key, or null
if there was no mapping for key.IMap.putIfAbsent(Object, Object)
public Object replace(Object key,
Object value)
TransactionalMapIMap.replace(Object, Object).
The object to be replaced will be accessible only in the current transaction context until the transaction is committed.
replace in interface BaseMapreplace in interface TransactionalMapkey - The specified key.value - The value to replace the previous value.
key, or null
if there was no mapping for key.IMap.replace(Object, Object)
public boolean replace(Object key,
Object oldValue,
Object newValue)
TransactionalMapIMap.replace(Object, Object, Object).
The object to be replaced will be accessible only in the current transaction context until the transaction is committed.
replace in interface BaseMapreplace in interface TransactionalMapkey - The specified key.oldValue - Replace the key value if it is the old value.newValue - The new value to replace the old value.
true if the value was replaced.IMap.replace(Object, Object, Object)
public boolean remove(Object key,
Object value)
TransactionalMapIMap.remove(Object, Object).
The object to be removed will be removed from only the current transaction context until the transaction is committed.
remove in interface BaseMapremove in interface TransactionalMapkey - The specified key.value - Remove the key if it has this value.
true if the value was removed.IMap.remove(Object, Object)public Object remove(Object key)
TransactionalMapIMap.remove(Object).
The object to be removed will be removed from only the current transaction context until the transaction is committed.
remove in interface BaseMapremove in interface TransactionalMapkey - Remove the mapping for this key.
key, or null
if there was no mapping for key.IMap.remove(Object)public void delete(Object key)
TransactionalMapIMap.delete(Object).
The object to be deleted will be removed from only the current transaction context until the transaction is committed.
delete in interface BaseMapdelete in interface TransactionalMapkey - Remove the mapping for this key.IMap.delete(Object)public Set<Object> keySet()
TransactionalMapIMap.keySet().
keySet in interface TransactionalMapIMap.keySet()public Set keySet(Predicate predicate)
TransactionalMapIMap.keySet(com.hazelcast.query.Predicate).
keySet in interface TransactionalMapIMap.keySet(com.hazelcast.query.Predicate)public Collection<Object> values()
TransactionalMapIMap.values().
values in interface TransactionalMapIMap.values()public Collection values(Predicate predicate)
TransactionalMapIMap.values(com.hazelcast.query.Predicate).
values in interface TransactionalMapIMap.values(com.hazelcast.query.Predicate)public String toString()
toString in class AbstractDistributedObject<MapService>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||