public abstract class AbstractTransactionalCollectionProxy<S extends RemoteService,E> extends AbstractDistributedObject<S>
Modifier and Type | Field and Description |
---|---|
protected Set<Long> |
itemIdSet |
protected String |
name |
protected int |
partitionId |
protected Transaction |
tx |
PARTITIONING_STRATEGY
Constructor and Description |
---|
AbstractTransactionalCollectionProxy(String name,
Transaction tx,
NodeEngine nodeEngine,
S service) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(E e) |
protected void |
checkObjectNotNull(Object o) |
protected void |
checkTransactionActive() |
protected abstract Collection<CollectionItem> |
getCollection() |
String |
getName()
Returns the unique name for this DistributedObject.
|
boolean |
remove(E e) |
int |
size() |
destroy, equals, getNameAsPartitionAwareData, getNodeEngine, getOperationService, getPartitionId, getPartitionKey, getService, getServiceName, hashCode, invalidate, postDestroy, throwNotActiveException, toString
protected final String name
protected final Transaction tx
protected final int partitionId
public AbstractTransactionalCollectionProxy(String name, Transaction tx, NodeEngine nodeEngine, S service)
protected abstract Collection<CollectionItem> getCollection()
public String getName()
DistributedObject
public boolean add(E e)
public boolean remove(E e)
public int size()
protected void checkTransactionActive()
protected void checkObjectNotNull(Object o)
Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.