Package com.day.cq.replication
Class ReplicationEvent
- java.lang.Object
-
- com.day.cq.replication.ReplicationEvent
-
- All Implemented Interfaces:
java.io.Serializable
public class ReplicationEvent extends java.lang.Object implements java.io.Serializable
An event fired when someReplicationAction
needs to be handled- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
EVENT_TOPIC
static java.lang.String
PATHS
-
Constructor Summary
Constructors Constructor Description ReplicationEvent(ReplicationAction replicationAction)
ReplicationEvent(ReplicationAction replicationAction, boolean isLocal)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ReplicationEvent
fromEvent(Event evt)
Convert an OSGi event to a replication event if possible.ReplicationAction
getReplicationAction()
Returns the underlyingReplicationAction
which fired this eventEvent
toEvent()
Create a distributable event.Event
toNonDistributableEvent()
Create a non distributable event.
-
-
-
Field Detail
-
EVENT_TOPIC
public static final java.lang.String EVENT_TOPIC
- See Also:
- Constant Field Values
-
PATHS
public static final java.lang.String PATHS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ReplicationEvent
public ReplicationEvent(ReplicationAction replicationAction)
-
ReplicationEvent
public ReplicationEvent(ReplicationAction replicationAction, boolean isLocal)
-
-
Method Detail
-
getReplicationAction
public ReplicationAction getReplicationAction()
Returns the underlyingReplicationAction
which fired this event- Returns:
- the replication action which caused the event
-
fromEvent
public static ReplicationEvent fromEvent(Event evt)
Convert an OSGi event to a replication event if possible.- Parameters:
evt
- The OSGi event.- Returns:
- The replication event
-
toEvent
public Event toEvent()
Create a distributable event.- Returns:
- An event.
-
toNonDistributableEvent
public Event toNonDistributableEvent()
Create a non distributable event.- Returns:
- An event.
-
-