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

public class ClusterEventWrapper extends ConfluenceEvent implements Serializable
Wraps an event for transmission to other nodes in the cluster.

See Also:
  • Field Details

  • Constructor Details

    • ClusterEventWrapper

      public ClusterEventWrapper(Object src, ClusterEvent 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
  • Method Details

    • getEvent

      public ClusterEvent getEvent()
      Returns:
      the wrapped event
    • unwrapIfType

      public <E> Optional<E> unwrapIfType(Class<E> type)
      Since:
      8.9