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
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionClusterEventWrapper
(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, hashCode
Methods inherited from class org.springframework.context.ApplicationEvent
getTimestamp
Methods 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 aClusterNodeInformation
object.event
- an event to be wrapped
-
-
Method Details
-
getEvent
- Returns:
- the wrapped event
-
unwrapIfType
- Since:
- 8.9
-