com.hazelcast.collection.txn
Class AbstractTransactionalCollectionProxy<S extends RemoteService,E>
java.lang.Object
com.hazelcast.spi.AbstractDistributedObject<S>
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>
Methods inherited from class com.hazelcast.spi.AbstractDistributedObject |
destroy, equals, getId, getNameAsPartitionAwareData, getNodeEngine, getPartitionKey, getService, getServiceName, hashCode, invalidate, postDestroy, throwNotActiveException, toString |
name
protected final String name
tx
protected final TransactionSupport tx
partitionId
protected final int partitionId
itemIdSet
protected final Set<Long> itemIdSet
AbstractTransactionalCollectionProxy
public AbstractTransactionalCollectionProxy(String name,
TransactionSupport tx,
NodeEngine nodeEngine,
S service)
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.