E
- the type of elements in this listpublic class ClientTxnListProxy<E> extends Object implements TransactionalList<E>
TransactionalList
.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.
|
boolean |
remove(E e)
Removes an item from the transactional list.
|
int |
size()
Returns the size of the list.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
destroy, getName, getPartitionKey
public ClientTxnListProxy(String name, ClientTransactionContext transactionContext)
public String getServiceName()
DistributedObject
getServiceName
in interface DistributedObject
public boolean add(E e)
TransactionalList
add
in interface TransactionalList<E>
e
- the new item added to the transactional listtrue
if the item is added successfullypublic boolean remove(E e)
TransactionalList
remove
in interface TransactionalList<E>
e
- item to remove the transactional listtrue
if the item is removed successfullypublic int size()
TransactionalList
size
in interface TransactionalList<E>
public String getName()
DistributedObject
DistributedObjectUtil.getName(DistributedObject)
because this might be also a PrefixedDistributedObject
.getName
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
public final void destroy()
DistributedObject
destroy
in interface DistributedObject
Copyright © 2020 Hazelcast, Inc.. All Rights Reserved.