com.hazelcast.core
Interface DistributedObject

All Known Subinterfaces:
AsyncAtomicLong, AsyncAtomicReference<E>, BaseMap<K,V>, BaseMultiMap<K,V>, BaseQueue<E>, IAtomicLong, IAtomicReference<E>, ICollection<E>, ICountDownLatch, IdGenerator, IExecutorService, IList<E>, ILock, IMap<K,V>, IQueue<E>, ISemaphore, ISet<E>, ITopic<E>, JobTracker, MultiMap<K,V>, ReplicatedMap<K,V>, TransactionalList<E>, TransactionalMap<K,V>, TransactionalMultiMap<K,V>, TransactionalObject, TransactionalQueue<E>, TransactionalSet<E>
All Known Implementing Classes:
AbstractClientCollectionProxy, AbstractClientTxnCollectionProxy, AbstractCollectionProxyImpl, AbstractDistributedObject, AbstractJobTracker, AbstractTransactionalCollectionProxy, AtomicLongProxy, AtomicReferenceProxy, CacheDistributedObject, ClientAtomicLongProxy, ClientAtomicReferenceProxy, ClientCacheDistributedObject, ClientConditionProxy, ClientCountDownLatchProxy, ClientExecutorServiceProxy, ClientIdGeneratorProxy, ClientListProxy, ClientLockProxy, ClientMapProxy, ClientMapReduceProxy, ClientMultiMapProxy, ClientProxy, ClientQueueProxy, ClientReplicatedMapProxy, ClientSemaphoreProxy, ClientSetProxy, ClientTopicProxy, ClientTxnListProxy, ClientTxnMapProxy, ClientTxnMultiMapProxy, ClientTxnQueueProxy, ClientTxnSetProxy, CountDownLatchProxy, ExecutorServiceProxy, IdGeneratorProxy, ListProxyImpl, LockProxy, MapProxyImpl, MultiMapProxySupport, ObjectMultiMapProxy, QueueProxyImpl, ReplicatedMapProxy, SemaphoreProxy, SetProxyImpl, TopicProxy, TotalOrderedTopicProxy, TransactionalListProxy, TransactionalMapProxy, TransactionalMapProxySupport, TransactionalMultiMapProxy, TransactionalMultiMapProxySupport, TransactionalQueueProxy, TransactionalQueueProxySupport, TransactionalSetProxy

public interface DistributedObject

Base interface for all distributed objects. All distributed objects are not garbage collectable unless destroy() is called first. Note: Failure to destroy after you are done using a distributed object will lead to memory leaks.

See Also:
IMap, IQueue, MultiMap, ITopic, ILock, IExecutorService, TransactionalMap, TransactionalQueue, TransactionalMultiMap

Method Summary
 void destroy()
          Destroys this object cluster-wide.
 Object getId()
          Deprecated. use getName() instead
 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.
 

Method Detail

getId

@Deprecated
Object getId()
Deprecated. use getName() instead

Returns the unique id for this object.

Returns:
id the of this instance

getPartitionKey

String getPartitionKey()
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.

Returns:
the partition key.

getName

String getName()
Returns the unique name for this DistributedObject. The returned value will never be null.

Returns:
the unique name for this object.

getServiceName

String getServiceName()
Returns the service name for this object.

Returns:
the service name for this object.

destroy

void destroy()
Destroys this object cluster-wide. Clears and releases all resources for this object.



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