com.hazelcast.map.impl.tx
Class TransactionalMapProxySupport

java.lang.Object
  extended by com.hazelcast.spi.AbstractDistributedObject<MapService>
      extended by com.hazelcast.map.impl.tx.TransactionalMapProxySupport
All Implemented Interfaces:
DistributedObject, TransactionalObject
Direct Known Subclasses:
TransactionalMapProxy

public abstract class TransactionalMapProxySupport
extends AbstractDistributedObject<MapService>
implements TransactionalObject

Base class contains proxy helper methods for TransactionalMapProxy


Field Summary
protected  String name
           
protected  PartitioningStrategy partitionStrategy
           
protected  TransactionSupport tx
           
protected  Map<Data,VersionedValue> valueMap
           
 
Fields inherited from class com.hazelcast.spi.AbstractDistributedObject
PARTITIONING_STRATEGY
 
Constructor Summary
TransactionalMapProxySupport(String name, MapService mapService, NodeEngine nodeEngine, TransactionSupport transaction)
           
 
Method Summary
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()
           
 
Methods inherited from class com.hazelcast.spi.AbstractDistributedObject
destroy, equals, getId, getNameAsPartitionAwareData, getNodeEngine, getPartitionKey, getService, hashCode, invalidate, postDestroy, throwNotActiveException, toString
 
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, getPartitionKey
 

Field Detail

name

protected final String name

tx

protected final TransactionSupport tx

partitionStrategy

protected final PartitioningStrategy partitionStrategy

valueMap

protected final Map<Data,VersionedValue> valueMap
Constructor Detail

TransactionalMapProxySupport

public TransactionalMapProxySupport(String name,
                                    MapService mapService,
                                    NodeEngine nodeEngine,
                                    TransactionSupport transaction)
Method Detail

checkTransactionState

protected void checkTransactionState()

containsKeyInternal

public boolean containsKeyInternal(Data key)

getInternal

public Object getInternal(Data key)

getForUpdateInternal

public Object getForUpdateInternal(Data key)

sizeInternal

public int sizeInternal()

putInternal

public Data putInternal(Data key,
                        Data value)

putInternal

public Data putInternal(Data key,
                        Data value,
                        long ttl,
                        TimeUnit timeUnit)

putIfAbsentInternal

public Data putIfAbsentInternal(Data key,
                                Data value)

replaceInternal

public Data replaceInternal(Data key,
                            Data value)

replaceIfSameInternal

public boolean replaceIfSameInternal(Data key,
                                     Object oldValue,
                                     Data newValue)

removeInternal

public Data removeInternal(Data key)

removeIfSameInternal

public boolean removeIfSameInternal(Data key,
                                    Object value)

keySetInternal

protected Set<Data> keySetInternal()

getEntries

protected List<Map.Entry<Data,Data>> getEntries()

queryInternal

protected Set queryInternal(Predicate predicate,
                            IterationType iterationType,
                            boolean dataResult)

getTimeInMillis

protected long getTimeInMillis(long time,
                               TimeUnit timeunit)

getName

public String getName()
Description copied from interface: DistributedObject
Returns the unique name for this DistributedObject. The returned value will never be null.

Specified by:
getName in interface DistributedObject
Returns:
the unique name for this object.

getServiceName

public final String getServiceName()
Description copied from interface: DistributedObject
Returns the service name for this object.

Specified by:
getServiceName in interface DistributedObject
Specified by:
getServiceName in class AbstractDistributedObject<MapService>
Returns:
the service name for this object.


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