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
Nested ClassesModifier and TypeClassDescriptionstatic enumType of the DistributedObjectEvent. - 
Field Summary
FieldsFields inherited from class java.util.EventObject
source - 
Constructor Summary
ConstructorsConstructorDescriptionDistributedObjectEvent(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.CREATEDorDistributedObjectEvent.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.EventTypeinteger.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.CREATEDorDistributedObjectEvent.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:
 toStringin classEventObject
 
 -