Class ReplicationEvent

  • All Implemented Interfaces:
    java.io.Serializable

    public class ReplicationEvent
    extends java.lang.Object
    implements java.io.Serializable
    An event fired when some ReplicationAction needs to be handled
    See Also:
    Serialized Form
    • Constructor Detail

      • ReplicationEvent

        public ReplicationEvent​(ReplicationAction replicationAction,
                                boolean isLocal)
    • Method Detail

      • 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.