public class DistributedObjectEvent extends EventObject
DistributedObject
is created or destroyed cluster-wide.Modifier and Type | Class and Description |
---|---|
static class |
DistributedObjectEvent.EventType
Type of the DistributedObjectEvent.
|
Modifier and Type | Field and Description |
---|---|
protected DistributedObject |
distributedObject |
source
Constructor and Description |
---|
DistributedObjectEvent(DistributedObjectEvent.EventType eventType,
String serviceName,
String objectName,
DistributedObject distributedObject,
UUID source)
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 |
getObjectName()
Returns the name of related DistributedObject.
|
String |
getServiceName()
Returns the service name of related DistributedObject.
|
String |
toString() |
getSource
protected DistributedObject distributedObject
public DistributedObjectEvent(DistributedObjectEvent.EventType eventType, String serviceName, String objectName, DistributedObject distributedObject, UUID source)
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.source
- The UUID of the client or member which initialized create/destroy.public String getServiceName()
public DistributedObjectEvent.EventType getEventType()
DistributedObjectEvent.EventType.CREATED
or DistributedObjectEvent.EventType.DESTROYED
.DistributedObjectEvent.EventType
.public Object getObjectName()
DistributedObject.getName()
public DistributedObject getDistributedObject()
DistributedObjectDestroyedException
- if distributed object is destroyed.public String toString()
toString
in class EventObject
Copyright © 2021 Hazelcast, Inc.. All rights reserved.