Class ReplicatedAction

java.lang.Object
com.day.cq.replication.ReplicatedAction

public class ReplicatedAction extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • getReplicationAction

      public ReplicationAction getReplicationAction()
      Return the ReplicationAction
      Returns:
      the ReplicationAction
    • getAgentIds

      public List<String> getAgentIds()
      Return the agentIds
      Returns:
      the agentIds
    • fromEvent

      public static ReplicatedAction fromEvent(Event evt)
      Convert an OSGi event to a replication event.
      Parameters:
      evt - The OSGi event
      Returns:
      The replication event if the OSGi event contained a replication event. Otherwise null is returned.
    • toEvent

      public Event toEvent(boolean distributeEvents)
      Create an OSGi event out of the replication event.
      Parameters:
      distributeEvents - if true a distributed event is created
      Returns:
      A new OSGi event.