public class DistributedObjectEvent extends Object
DistributedObject
is created or destroyed cluster-wide.DistributedObject
,
DistributedObjectListener
Modifier and Type | Class and Description |
---|---|
static class |
DistributedObjectEvent.EventType
Type of the DistributedObjectEvent.
|
Modifier and Type | Field and Description |
---|---|
protected DistributedObject |
distributedObject |
Constructor and Description |
---|
DistributedObjectEvent(DistributedObjectEvent.EventType eventType,
String serviceName,
String objectName,
DistributedObject distributedObject)
Constructs a DistributedObject Event.
|
Modifier and Type | Method and Description |
---|---|
DistributedObject |
getDistributedObject()
Returns the DistributedObject instance.
|
DistributedObjectEvent.EventType |
getEventType()
Returns the type of this event; one of
DistributedObjectEvent.EventType.CREATED or DistributedObjectEvent.EventType.DESTROYED . |
Object |
getObjectId()
Deprecated.
since 3.5. Please use
getObjectName() instead. |
Object |
getObjectName()
Returns the name of related DistributedObject.
|
String |
getServiceName()
Returns the service name of related DistributedObject.
|
String |
toString() |
protected DistributedObject distributedObject
public DistributedObjectEvent(DistributedObjectEvent.EventType eventType, String serviceName, String objectName, DistributedObject distributedObject)
eventType
- The event type as an enum DistributedObjectEvent.EventType
integer.serviceName
- The service name of the DistributedObject.objectName
- The name of the DistributedObject.distributedObject
- The DistributedObject for the event.public String getServiceName()
public DistributedObjectEvent.EventType getEventType()
DistributedObjectEvent.EventType.CREATED
or DistributedObjectEvent.EventType.DESTROYED
.DistributedObjectEvent.EventType
.public Object getObjectId()
getObjectName()
instead.public Object getObjectName()
DistributedObject.getName()
public DistributedObject getDistributedObject()
DistributedObjectDestroyedException
- if distributed object is destroyed.Copyright © 2021 Hazelcast, Inc.. All Rights Reserved.