com.hazelcast.collection.txn
Class TransactionalSetProxy<E>
java.lang.Object
com.hazelcast.spi.AbstractDistributedObject<S>
com.hazelcast.collection.txn.AbstractTransactionalCollectionProxy<SetService,E>
com.hazelcast.collection.txn.TransactionalSetProxy<E>
- All Implemented Interfaces:
- DistributedObject, TransactionalSet<E>, TransactionalObject
public class TransactionalSetProxy<E>
- extends AbstractTransactionalCollectionProxy<SetService,E>
- implements TransactionalSet<E>
Methods inherited from class com.hazelcast.spi.AbstractDistributedObject |
destroy, equals, getId, getNameAsPartitionAwareData, getNodeEngine, getPartitionKey, getService, hashCode, invalidate, postDestroy, throwNotActiveException, toString |
TransactionalSetProxy
public TransactionalSetProxy(String name,
TransactionSupport tx,
NodeEngine nodeEngine,
SetService service)
add
public boolean add(E e)
- Description copied from interface:
TransactionalSet
- Add new item to transactional set.
- Specified by:
add
in interface TransactionalSet<E>
- Overrides:
add
in class AbstractTransactionalCollectionProxy<SetService,E>
- Parameters:
e
- item added to transactional set
- Returns:
- true if item is added successfully
getServiceName
public 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<SetService>
- Returns:
- the service name for this object.
getCollection
protected Collection<CollectionItem> getCollection()
- Specified by:
getCollection
in class AbstractTransactionalCollectionProxy<SetService,E>
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.