S
- public abstract class AbstractDistributedObject<S extends RemoteService> extends Object implements DistributedObject
Modifier and Type | Field and Description |
---|---|
protected static PartitioningStrategy |
PARTITIONING_STRATEGY |
Modifier | Constructor and Description |
---|---|
protected |
AbstractDistributedObject(NodeEngine nodeEngine,
S service) |
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Destroys this object cluster-wide.
|
boolean |
equals(Object o) |
Object |
getId()
Deprecated.
|
protected Data |
getNameAsPartitionAwareData() |
NodeEngine |
getNodeEngine()
Gets the node engine.
|
String |
getPartitionKey()
Returns the key of partition this DistributedObject is assigned to.
|
S |
getService()
Gets the Service of this AbstractDistributedObject.
|
abstract String |
getServiceName()
Returns the service name for this object.
|
int |
hashCode() |
void |
invalidate() |
protected void |
postDestroy() |
protected RuntimeException |
throwNotActiveException() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getName
protected static final PartitioningStrategy PARTITIONING_STRATEGY
protected AbstractDistributedObject(NodeEngine nodeEngine, S service)
protected Data getNameAsPartitionAwareData()
public String getPartitionKey()
DistributedObject
getPartitionKey
in interface DistributedObject
public final void destroy()
DistributedObject
destroy
in interface DistributedObject
protected void postDestroy()
public final NodeEngine getNodeEngine()
HazelcastInstanceNotActiveException
- if NodeEngine not active or DistributedObject destroyed.protected RuntimeException throwNotActiveException()
public final S getService()
HazelcastInstanceNotActiveException
- if object is destroyed or HazelcastInstance shutdown.public abstract String getServiceName()
DistributedObject
getServiceName
in interface DistributedObject
public final void invalidate()
@Deprecated public final Object getId()
DistributedObject
getId
in interface DistributedObject
Copyright © 2014 Hazelcast, Inc.. All Rights Reserved.