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 SummaryNested ClassesModifier and TypeClassDescriptionstatic enumType of the DistributedObjectEvent.
- 
Field SummaryFieldsFields inherited from class java.util.EventObjectsource
- 
Constructor SummaryConstructorsConstructorDescriptionDistributedObjectEvent(DistributedObjectEvent.EventType eventType, String serviceName, String objectName, DistributedObject distributedObject, UUID source) Constructs a DistributedObject Event.
- 
Method SummaryModifier 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.EventObjectgetSource
- 
Field Details- 
distributedObject
 
- 
- 
Constructor Details- 
DistributedObjectEventpublic DistributedObjectEvent(DistributedObjectEvent.EventType eventType, String serviceName, String objectName, DistributedObject distributedObject, UUID source) Constructs a DistributedObject Event.- Parameters:
- eventType- The event type as an enum- DistributedObjectEvent.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- 
getServiceNameReturns the service name of related DistributedObject.- Returns:
- service name of DistributedObject
 
- 
getEventTypeReturns the type of this event; one ofDistributedObjectEvent.EventType.CREATEDorDistributedObjectEvent.EventType.DESTROYED.- Returns:
- The type of this event DistributedObjectEvent.EventType.
 
- 
getObjectNameReturns the name of related DistributedObject.- Returns:
- the name of DistributedObject
- See Also:
 
- 
getDistributedObjectReturns the DistributedObject instance.- Returns:
- the DistributedObject instance
- Throws:
- DistributedObjectDestroyedException- if distributed object is destroyed.
 
- 
toString- Overrides:
- toStringin class- EventObject
 
 
-