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:
  • Constructor Details

    • NutclusterClusterEventWrapper

      public NutclusterClusterEventWrapper(Object src, T event)
      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 a ClusterNodeInformation object.
      event - an event to be wrapped
    • NutclusterClusterEventWrapper

      public NutclusterClusterEventWrapper()
  • Method Details

    • getEvent

      public T getEvent()
      Overrides:
      getEvent in class ClusterEventWrapper
      Returns:
      the wrapped event
    • writeData

      public void writeData(com.atlassian.nutcluster.nio.ObjectDataOutput out) throws IOException
      Specified by:
      writeData in interface com.atlassian.nutcluster.nio.serialization.DataSerializable
      Throws:
      IOException
    • readData

      public void readData(com.atlassian.nutcluster.nio.ObjectDataInput in) throws IOException
      Specified by:
      readData in interface com.atlassian.nutcluster.nio.serialization.DataSerializable
      Throws:
      IOException