Package com.hazelcast.wan
Interface WanEvent<T>
-
- Type Parameters:
T
- type of event data
public interface WanEvent<T>
Interface for all WAN replication messages
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
getEventObject()
Returns the event object/data.WanEventType
getEventType()
Returns the type of this event.java.lang.String
getObjectName()
Returns the name of the distributed object (map or cache) on which this event occurred.java.lang.String
getServiceName()
Returns the service name on which this event occurred.
-
-
-
Method Detail
-
getServiceName
@Nonnull java.lang.String getServiceName()
Returns the service name on which this event occurred.- Returns:
- the service name on which this event occurred.
- See Also:
MapService.SERVICE_NAME
,ICacheService.SERVICE_NAME
-
getObjectName
@Nonnull java.lang.String getObjectName()
Returns the name of the distributed object (map or cache) on which this event occurred.- Returns:
- the distributed object name
-
getEventType
@Nonnull WanEventType getEventType()
Returns the type of this event.- Returns:
- the WAN event type
-
getEventObject
@Nullable T getEventObject()
Returns the event object/data.- Returns:
- the WAN event object
-
-