Class TopologyEvent

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  TopologyEvent.Type
      Type of topology events.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<Event> reasons()
      Returns the list of events that triggered the topology change.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • TopologyEvent

        public TopologyEvent​(TopologyEvent.Type type,
                             Topology topology,
                             java.util.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,
                             java.util.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 java.util.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