E - the type of elements in this setpublic class ClientTxnSetProxy<E> extends AbstractClientTxnCollectionProxy<E> implements TransactionalSet<E>
TransactionalSet.| Constructor and Description | 
|---|
| ClientTxnSetProxy(String name,
                 ClientTransactionContext transactionContext) | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | add(E e)Add new item to transactional set. | 
| void | destroy()Destroys this object cluster-wide. | 
| String | getName()Returns the unique name for this DistributedObject. | 
| String | getPartitionKey()Returns the key of the partition that this DistributedObject is assigned to. | 
| String | getServiceName()Returns the service name for this object. | 
| protected String | getTransactionId() | 
| boolean | remove(E e)Remove item from transactional set. | 
| int | size()Returns the size of the set. | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdestroy, getName, getPartitionKeypublic ClientTxnSetProxy(String name, ClientTransactionContext transactionContext)
public boolean add(E e)
TransactionalSetadd in interface TransactionalSet<E>e - item added to transactional setpublic boolean remove(E e)
TransactionalSetremove in interface TransactionalSet<E>e - item removed from transactional setpublic int size()
TransactionalSetsize in interface TransactionalSet<E>public String getServiceName()
DistributedObjectgetServiceName in interface DistributedObjectprotected String getTransactionId()
public final void destroy()
DistributedObjectdestroy in interface DistributedObjectpublic String getName()
DistributedObjectDistributedObjectUtil.getName(DistributedObject)
 because this might be also a PrefixedDistributedObject.getName in interface DistributedObjectpublic String getPartitionKey()
DistributedObjectIAtomicLong. For a partitioned data structure like an IMap,
 the returned value will not be null, but otherwise undefined.getPartitionKey in interface DistributedObjectCopyright © 2016 Hazelcast, Inc.. All Rights Reserved.