com.atlassian.confluence.event.events.cluster
Class ClusterEventWrapper

java.lang.Object
  extended by java.util.EventObject
      extended by org.springframework.context.ApplicationEvent
          extended by com.atlassian.event.Event
              extended by com.atlassian.confluence.event.events.ConfluenceEvent
                  extended by com.atlassian.confluence.event.events.cluster.ClusterEventWrapper
All Implemented Interfaces:
java.io.Serializable

public class ClusterEventWrapper
extends ConfluenceEvent
implements java.io.Serializable

Wraps an event for transmission to other nodes in the cluster.

The com.atlassian.confluence.cluster.coherence.invocations.EventInvocable is responsible for actually putting this event on the EventManager queue on the remote nodes.

See Also:
com.atlassian.confluence.cluster.coherence.invocations.EventInvocable, ClusterEventBroadcaster, Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ClusterEventWrapper(java.lang.Object src, com.atlassian.event.Event event)
          Create a clustered wrapper event to broadcast an event across a cluster.
 
Method Summary
 com.atlassian.event.Event getEvent()
           
 
Methods inherited from class com.atlassian.event.Event
equals, hashCode
 
Methods inherited from class org.springframework.context.ApplicationEvent
getTimestamp
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClusterEventWrapper

public ClusterEventWrapper(java.lang.Object src,
                           com.atlassian.event.Event 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 Detail

getEvent

public com.atlassian.event.Event getEvent()
Returns:
the wrapped event


Copyright © 2003-2014 Atlassian. All Rights Reserved.