Class NutclusterClusterEventWrapper<T extends ClusterEvent>
java.lang.Object
java.util.EventObject
com.atlassian.confluence.event.events.cluster.ClusterEventWrapper
com.atlassian.confluence.cluster.nutcluster.NutclusterClusterEventWrapper<T>
- All Implemented Interfaces:
com.atlassian.nutcluster.nio.serialization.DataSerializable
,Serializable
public class NutclusterClusterEventWrapper<T extends ClusterEvent>
extends ClusterEventWrapper
implements Serializable, com.atlassian.nutcluster.nio.serialization.DataSerializable
Nutcluster specific implementation of the ClusterEventWrapper. This version is DataSerializable, and uses OsgiSafe
to hold the event. This allows Nutcluster to serialize/deserialze it nicely
- See Also:
-
Field Summary
Fields inherited from class com.atlassian.confluence.event.events.cluster.ClusterEventWrapper
event
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorsConstructorDescriptionNutclusterClusterEventWrapper
(Object src, T event) Create a clustered wrapper event to broadcast an event across a cluster. -
Method Summary
Methods inherited from class com.atlassian.confluence.event.events.cluster.ClusterEventWrapper
unwrapIfType
Methods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
NutclusterClusterEventWrapper
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
-
NutclusterClusterEventWrapper
public NutclusterClusterEventWrapper()
-
-
Method Details
-
getEvent
- Overrides:
getEvent
in classClusterEventWrapper
- Returns:
- the wrapped event
-
writeData
- Specified by:
writeData
in interfacecom.atlassian.nutcluster.nio.serialization.DataSerializable
- Throws:
IOException
-
readData
- Specified by:
readData
in interfacecom.atlassian.nutcluster.nio.serialization.DataSerializable
- Throws:
IOException
-