com.hazelcast.collection.txn
Class AbstractTransactionalCollectionProxy<S extends RemoteService,E>

java.lang.Object
  extended by com.hazelcast.spi.AbstractDistributedObject<S>
      extended by com.hazelcast.collection.txn.AbstractTransactionalCollectionProxy<S,E>
All Implemented Interfaces:
DistributedObject
Direct Known Subclasses:
TransactionalListProxy, TransactionalSetProxy

public abstract class AbstractTransactionalCollectionProxy<S extends RemoteService,E>
extends AbstractDistributedObject<S>


Field Summary
protected  Set<Long> itemIdSet
           
protected  String name
           
protected  int partitionId
           
protected  TransactionSupport tx
           
 
Fields inherited from class com.hazelcast.spi.AbstractDistributedObject
PARTITIONING_STRATEGY
 
Constructor Summary
AbstractTransactionalCollectionProxy(String name, TransactionSupport tx, NodeEngine nodeEngine, S service)
           
 
Method Summary
 boolean add(E e)
           
protected  void checkTransactionState()
           
protected abstract  Collection<CollectionItem> getCollection()
           
 String getName()
          Returns the unique name for this DistributedObject.
 boolean remove(E e)
           
 int size()
           
protected  void throwExceptionIfNull(Object o)
           
 
Methods inherited from class com.hazelcast.spi.AbstractDistributedObject
destroy, equals, getId, getNameAsPartitionAwareData, getNodeEngine, getPartitionKey, getService, getServiceName, hashCode, invalidate, postDestroy, throwNotActiveException, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

name

protected final String name

tx

protected final TransactionSupport tx

partitionId

protected final int partitionId

itemIdSet

protected final Set<Long> itemIdSet
Constructor Detail

AbstractTransactionalCollectionProxy

public AbstractTransactionalCollectionProxy(String name,
                                            TransactionSupport tx,
                                            NodeEngine nodeEngine,
                                            S service)
Method Detail

getCollection

protected abstract Collection<CollectionItem> getCollection()

getName

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

Returns:
the unique name for this object.

add

public boolean add(E e)

remove

public boolean remove(E e)

size

public int size()

checkTransactionState

protected void checkTransactionState()

throwExceptionIfNull

protected void throwExceptionIfNull(Object o)


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