public abstract class TransactionalMapProxySupport extends AbstractDistributedObject<MapService> implements TransactionalObject
TransactionalMapProxy
Modifier and Type | Field and Description |
---|---|
protected String |
name |
protected PartitioningStrategy |
partitionStrategy |
protected TransactionSupport |
tx |
protected Map<Data,VersionedValue> |
valueMap |
PARTITIONING_STRATEGY
Constructor and Description |
---|
TransactionalMapProxySupport(String name,
MapService mapService,
NodeEngine nodeEngine,
TransactionSupport transaction) |
Modifier and Type | Method and Description |
---|---|
protected void |
checkTransactionState() |
boolean |
containsKeyInternal(Data key) |
protected List<Map.Entry<Data,Data>> |
getEntries() |
Object |
getForUpdateInternal(Data key) |
Object |
getInternal(Data key) |
String |
getName()
Returns the unique name for this DistributedObject.
|
String |
getServiceName()
Returns the service name for this object.
|
protected long |
getTimeInMillis(long time,
TimeUnit timeunit) |
protected Set<Data> |
keySetInternal() |
Data |
putIfAbsentInternal(Data key,
Data value) |
Data |
putInternal(Data key,
Data value) |
Data |
putInternal(Data key,
Data value,
long ttl,
TimeUnit timeUnit) |
protected Set |
queryInternal(Predicate predicate,
IterationType iterationType,
boolean dataResult) |
boolean |
removeIfSameInternal(Data key,
Object value) |
Data |
removeInternal(Data key) |
boolean |
replaceIfSameInternal(Data key,
Object oldValue,
Data newValue) |
Data |
replaceInternal(Data key,
Data value) |
int |
sizeInternal() |
destroy, equals, getId, getNameAsPartitionAwareData, getNodeEngine, getPartitionKey, getService, hashCode, invalidate, postDestroy, throwNotActiveException, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
destroy, getId, getPartitionKey
protected final String name
protected final TransactionSupport tx
protected final PartitioningStrategy partitionStrategy
protected final Map<Data,VersionedValue> valueMap
public TransactionalMapProxySupport(String name, MapService mapService, NodeEngine nodeEngine, TransactionSupport transaction)
protected void checkTransactionState()
public boolean containsKeyInternal(Data key)
public int sizeInternal()
public boolean replaceIfSameInternal(Data key, Object oldValue, Data newValue)
protected Set queryInternal(Predicate predicate, IterationType iterationType, boolean dataResult)
protected long getTimeInMillis(long time, TimeUnit timeunit)
public String getName()
DistributedObject
getName
in interface DistributedObject
public final String getServiceName()
DistributedObject
getServiceName
in interface DistributedObject
getServiceName
in class AbstractDistributedObject<MapService>
Copyright © 2014 Hazelcast, Inc.. All Rights Reserved.