com.atlassian.confluence.event.events.cluster
Class ClusterEventWrapper
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
com.atlassian.event.Event
com.atlassian.confluence.event.events.ConfluenceEvent
com.atlassian.confluence.event.events.cluster.ClusterEventWrapper
- All Implemented Interfaces:
- Serializable
public class ClusterEventWrapper
- extends ConfluenceEvent
- implements Serializable
Wraps an event for transmission to other nodes in the cluster.
The EventInvocable
is responsible
for actually putting this event on the EventManager
queue on
the remote nodes.
- See Also:
EventInvocable
,
ClusterEventBroadcaster
,
Serialized Form
Constructor Summary |
ClusterEventWrapper(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 |
ClusterEventWrapper
public ClusterEventWrapper(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
getEvent
public com.atlassian.event.Event getEvent()
- Returns:
- the wrapped event
Copyright © 2003-2013 Atlassian. All Rights Reserved.