Class ReplicationEvent

java.lang.Object
com.day.cq.replication.ReplicationEvent
All Implemented Interfaces:
Serializable

public class ReplicationEvent extends Object implements Serializable
An event fired when some ReplicationAction needs to be handled
See Also:
  • Field Details

  • Constructor Details

    • ReplicationEvent

      public ReplicationEvent(ReplicationAction replicationAction)
    • ReplicationEvent

      public ReplicationEvent(ReplicationAction replicationAction, boolean isLocal)
  • Method Details

    • getReplicationAction

      public ReplicationAction getReplicationAction()
      Returns the underlying ReplicationAction 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.