com.hazelcast.core
public interface DistributedObject
destroy()
is called first.
Note: Failure to destroy after you are done using a distributed object will lead to memory leaks.IMap
,
IQueue
,
MultiMap
,
ITopic
,
ILock
,
IExecutorService
,
TransactionalMap
,
TransactionalQueue
,
TransactionalMultiMap
Modifier and Type | Method and Description |
---|---|
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.
|
@Deprecated Object getId()
getName()
insteadString getPartitionKey()
IAtomicLong
. For a partitioned data structure like an IMap
,
the returned value will not be null, but otherwise undefined.String getName()
String getServiceName()
void destroy()
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.