com.hazelcast.core
Class DistributedObjectEvent

java.lang.Object
  extended by com.hazelcast.core.DistributedObjectEvent

public class DistributedObjectEvent
extends Object

DistributedObjectEvent is fired when a DistributedObject is created or destroyed cluster-wide.

See Also:
DistributedObject, DistributedObjectListener

Nested Class Summary
static class DistributedObjectEvent.EventType
          Type of event.
 
Constructor Summary
DistributedObjectEvent(DistributedObjectEvent.EventType eventType, String serviceName, DistributedObject distributedObject)
          Constructs a DistributedObject Event.
 
Method Summary
 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()
          Returns the identifier of related DistributedObject.
 String getServiceName()
          Returns the service name of related DistributedObject.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DistributedObjectEvent

public DistributedObjectEvent(DistributedObjectEvent.EventType eventType,
                              String serviceName,
                              DistributedObject distributedObject)
Constructs a DistributedObject Event.

Parameters:
eventType - The event type as an enum DistributedObjectEvent.EventType integer.
serviceName - The service name of the DistributedObject.
distributedObject - The DistributedObject for the event.
Method Detail

getServiceName

public String getServiceName()
Returns the service name of related DistributedObject.

Returns:
service name of DistributedObject

getEventType

public DistributedObjectEvent.EventType getEventType()
Returns the type of this event; one of DistributedObjectEvent.EventType.CREATED or DistributedObjectEvent.EventType.DESTROYED.

Returns:
The type of this event DistributedObjectEvent.EventType.

getObjectId

public Object getObjectId()
Returns the identifier of related DistributedObject.

Returns:
the identifier of DistributedObject

getDistributedObject

public DistributedObject getDistributedObject()
Returns the DistributedObject instance.

Returns:
the DistributedObject instance

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.