Package com.hazelcast.core
Class DistributedObjectEvent
java.lang.Object
java.util.EventObject
com.hazelcast.core.DistributedObjectEvent
- All Implemented Interfaces:
Serializable
DistributedObjectEvent is fired when a
DistributedObject
is created or destroyed cluster-wide.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Type of the DistributedObjectEvent. -
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionDistributedObjectEvent
(DistributedObjectEvent.EventType eventType, String serviceName, String objectName, DistributedObject distributedObject, UUID source) Constructs a DistributedObject Event. -
Method Summary
Modifier and TypeMethodDescriptionReturns the DistributedObject instance.Returns the type of this event; one ofDistributedObjectEvent.EventType.CREATED
orDistributedObjectEvent.EventType.DESTROYED
.Returns the name of related DistributedObject.Returns the service name of related DistributedObject.toString()
Methods inherited from class java.util.EventObject
getSource
-
Field Details
-
distributedObject
-
-
Constructor Details
-
DistributedObjectEvent
public DistributedObjectEvent(DistributedObjectEvent.EventType eventType, String serviceName, String objectName, DistributedObject distributedObject, UUID source) Constructs a DistributedObject Event.- Parameters:
eventType
- The event type as an enumDistributedObjectEvent.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.
-
-
Method Details
-
getServiceName
Returns the service name of related DistributedObject.- Returns:
- service name of DistributedObject
-
getEventType
Returns the type of this event; one ofDistributedObjectEvent.EventType.CREATED
orDistributedObjectEvent.EventType.DESTROYED
.- Returns:
- The type of this event
DistributedObjectEvent.EventType
.
-
getObjectName
Returns the name of related DistributedObject.- Returns:
- the name of DistributedObject
- See Also:
-
getDistributedObject
Returns the DistributedObject instance.- Returns:
- the DistributedObject instance
- Throws:
DistributedObjectDestroyedException
- if distributed object is destroyed.
-
toString
- Overrides:
toString
in classEventObject
-