Package com.day.cq.replication
Class ReplicationEvent
java.lang.Object
com.day.cq.replication.ReplicationEvent
- All Implemented Interfaces:
Serializable
An event fired when some
ReplicationAction needs to be handled- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionReplicationEvent(ReplicationAction replicationAction) ReplicationEvent(ReplicationAction replicationAction, boolean isLocal) -
Method Summary
Modifier and TypeMethodDescriptionstatic ReplicationEventConvert an OSGi event to a replication event if possible.Returns the underlyingReplicationActionwhich fired this eventtoEvent()Create a distributable event.Create a non distributable event.
-
Field Details
-
EVENT_TOPIC
- See Also:
-
PATHS
- See Also:
-
-
Constructor Details
-
ReplicationEvent
-
ReplicationEvent
-
-
Method Details
-
getReplicationAction
Returns the underlyingReplicationActionwhich fired this event- Returns:
- the replication action which caused the event
-
fromEvent
Convert an OSGi event to a replication event if possible.- Parameters:
evt- The OSGi event.- Returns:
- The replication event
-
toEvent
Create a distributable event.- Returns:
- An event.
-
toNonDistributableEvent
Create a non distributable event.- Returns:
- An event.
-