Class ClusterEventWrapper
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
com.atlassian.confluence.event.events.ConfluenceEvent
com.atlassian.confluence.event.events.cluster.ClusterEventWrapper
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
HazelcastClusterEventWrapper
Wraps an event for transmission to other nodes in the cluster.
- See Also:
-
Field Summary
FieldsFields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionClusterEventWrapper(Object src, ClusterEvent event) Create a clustered wrapper event to broadcast an event across a cluster. -
Method Summary
Methods inherited from class com.atlassian.confluence.event.events.ConfluenceEvent
equals, hashCodeMethods inherited from class org.springframework.context.ApplicationEvent
getTimestampMethods inherited from class java.util.EventObject
getSource, toString
-
Field Details
-
event
-
-
Constructor Details
-
ClusterEventWrapper
Create a clustered wrapper event to broadcast an event across a cluster.- Parameters:
src- an Object which represents where the event came from. In the case of clustered events, the recommended src value is aClusterNodeInformationobject.event- an event to be wrapped
-
-
Method Details
-
getEvent
- Returns:
- the wrapped event
-
unwrapIfType
- Since:
- 8.9
-