Class TopologyEvent

    • Constructor Detail

      • TopologyEvent

        public TopologyEvent​(TopologyEvent.Type type,
                             Topology topology,
                             List<Event> reasons)
        Creates an event of a given type and for the specified topology and the current time.
        Parameters:
        type - topology event type
        topology - event topology subject
        reasons - list of events that triggered topology change
      • TopologyEvent

        public TopologyEvent​(TopologyEvent.Type type,
                             Topology topology,
                             List<Event> reasons,
                             long time)
        Creates an event of a given type and for the specified topology and time.
        Parameters:
        type - link event type
        topology - event topology subject
        reasons - list of events that triggered topology change
        time - occurrence time
    • Method Detail

      • reasons

        public List<Event> reasons()
        Returns the list of events that triggered the topology change.
        Returns:
        list of events responsible for change in topology; null if initial topology computation