com.hazelcast.client.txn.proxy
Class AbstractClientTxnCollectionProxy<E>

java.lang.Object
  extended by com.hazelcast.client.txn.proxy.AbstractClientTxnCollectionProxy<E>
All Implemented Interfaces:
DistributedObject, TransactionalObject
Direct Known Subclasses:
ClientTxnListProxy, ClientTxnSetProxy

public abstract class AbstractClientTxnCollectionProxy<E>
extends Object


Constructor Summary
protected AbstractClientTxnCollectionProxy(String name, TransactionContextProxy proxy)
           
 
Method Summary
 void destroy()
          Destroys this object cluster-wide.
 Object getId()
          Returns the unique id for this object.
 String getName()
          Returns the unique name for this DistributedObject.
 String getPartitionKey()
          Returns the key of the partition that this DistributedObject is assigned to.
protected  void throwExceptionIfNull(Object o)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.hazelcast.core.DistributedObject
getServiceName
 

Constructor Detail

AbstractClientTxnCollectionProxy

protected AbstractClientTxnCollectionProxy(String name,
                                           TransactionContextProxy proxy)
Method Detail

getName

public String getName()
Description copied from interface: DistributedObject
Returns the unique name for this DistributedObject. The returned value will never be null.

Returns:
the unique name for this object.

throwExceptionIfNull

protected void throwExceptionIfNull(Object o)

destroy

public final void destroy()
Description copied from interface: DistributedObject
Destroys this object cluster-wide. Clears and releases all resources for this object.

Specified by:
destroy in interface DistributedObject

getId

public Object getId()
Description copied from interface: DistributedObject
Returns the unique id for this object.

Specified by:
getId in interface DistributedObject
Returns:
id the of this instance

getPartitionKey

public String getPartitionKey()
Description copied from interface: DistributedObject
Returns the key of the partition that this DistributedObject is assigned to. The returned value only has meaning for a non-partitioned data structure like an IAtomicLong. For a partitioned data structure like an IMap, the returned value will not be null, but otherwise undefined.

Specified by:
getPartitionKey in interface DistributedObject
Returns:
the partition key.


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.