com.hazelcast.client.txn.proxy
public class ClientTxnSetProxy<E> extends AbstractClientTxnCollectionProxy<E> implements TransactionalSet<E>
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.
|
Object |
getId()
Returns the unique id for this object.
|
String |
getPartitionKey()
Returns the key of the partition that this DistributedObject is assigned to.
|
String |
getServiceName()
Returns the service name for this object.
|
boolean |
remove(E e)
Remove item from transactional set.
|
int |
size()
Returns the size of the set.
|
getName, throwExceptionIfNull
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
destroy, getId, getName, getPartitionKey
public ClientTxnSetProxy(String name, ClientTransactionContext transactionContext)
public boolean add(E e)
TransactionalSet
add
in interface TransactionalSet<E>
e
- item added to transactional setpublic boolean remove(E e)
TransactionalSet
remove
in interface TransactionalSet<E>
e
- item removed from transactional setpublic int size()
TransactionalSet
size
in interface TransactionalSet<E>
public String getServiceName()
DistributedObject
getServiceName
in interface DistributedObject
public final void destroy()
DistributedObject
destroy
in interface DistributedObject
public Object getId()
DistributedObject
getId
in interface DistributedObject
public String getPartitionKey()
DistributedObject
IAtomicLong
. For a partitioned data structure like an IMap
,
the returned value will not be null, but otherwise undefined.getPartitionKey
in interface DistributedObject
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.