com.hazelcast.collection.txn
Class TransactionalSetProxy<E>

java.lang.Object
  extended by com.hazelcast.spi.AbstractDistributedObject<S>
      extended by com.hazelcast.collection.txn.AbstractTransactionalCollectionProxy<SetService,E>
          extended by com.hazelcast.collection.txn.TransactionalSetProxy<E>
All Implemented Interfaces:
DistributedObject, TransactionalSet<E>, TransactionalObject

public class TransactionalSetProxy<E>
extends AbstractTransactionalCollectionProxy<SetService,E>
implements TransactionalSet<E>


Field Summary
 
Fields inherited from class com.hazelcast.collection.txn.AbstractTransactionalCollectionProxy
itemIdSet, name, partitionId, tx
 
Fields inherited from class com.hazelcast.spi.AbstractDistributedObject
PARTITIONING_STRATEGY
 
Constructor Summary
TransactionalSetProxy(String name, TransactionSupport tx, NodeEngine nodeEngine, SetService service)
           
 
Method Summary
 boolean add(E e)
          Add new item to transactional set.
protected  Collection<CollectionItem> getCollection()
           
 String getServiceName()
          Returns the service name for this object.
 
Methods inherited from class com.hazelcast.collection.txn.AbstractTransactionalCollectionProxy
checkTransactionState, getName, remove, size, throwExceptionIfNull
 
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.TransactionalSet
remove, size
 
Methods inherited from interface com.hazelcast.core.DistributedObject
destroy, getId, getName, getPartitionKey
 

Constructor Detail

TransactionalSetProxy

public TransactionalSetProxy(String name,
                             TransactionSupport tx,
                             NodeEngine nodeEngine,
                             SetService service)
Method Detail

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.