public class ClientTxnListProxy<E> extends AbstractClientTxnCollectionProxy<E> implements TransactionalList<E>
| Constructor and Description |
|---|
ClientTxnListProxy(String name,
ClientTransactionContext transactionContext) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(E e)
Adds a new item to the transactional list.
|
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 the transactional list
|
int |
size()
Returns the size of the list
|
throwExceptionIfNullclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdestroy, getName, getPartitionKeypublic ClientTxnListProxy(String name, ClientTransactionContext transactionContext)
public String getServiceName()
DistributedObjectgetServiceName in interface DistributedObjectpublic boolean add(E e)
TransactionalListadd in interface TransactionalList<E>e - the new item added to the transactional listpublic boolean remove(E e)
TransactionalListremove in interface TransactionalList<E>e - item to remove the transactional listpublic int size()
TransactionalListsize in interface TransactionalList<E>protected String getTransactionId()
public final void destroy()
DistributedObjectdestroy in interface DistributedObjectpublic String getName()
DistributedObjectgetName 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.