Class NetworkConfigEvent

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  NetworkConfigEvent.Type
      Type of network configuration events.
    • Constructor Summary

      Constructors 
      Constructor Description
      NetworkConfigEvent​(NetworkConfigEvent.Type type, java.lang.Object subject, java.lang.Class configClass)
      Creates an event of a given type and for the specified subject and the current time.
      NetworkConfigEvent​(NetworkConfigEvent.Type type, java.lang.Object subject, java.lang.Class configClass, long time)
      Creates an event of a given type and for the specified subject and time.
      NetworkConfigEvent​(NetworkConfigEvent.Type type, java.lang.Object subject, Config config, Config prevConfig, java.lang.Class configClass)
      Creates an event of a given type and for the specified subject, previous config and time.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Optional<Config> config()
      Returns current config.
      java.lang.Class configClass()
      Returns the class of configuration that has been changed.
      java.util.Optional<Config> prevConfig()
      Returns previous config.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • NetworkConfigEvent

        public NetworkConfigEvent​(NetworkConfigEvent.Type type,
                                  java.lang.Object subject,
                                  java.lang.Class configClass)
        Creates an event of a given type and for the specified subject and the current time.
        Parameters:
        type - event type
        subject - event subject
        configClass - configuration class
      • NetworkConfigEvent

        public NetworkConfigEvent​(NetworkConfigEvent.Type type,
                                  java.lang.Object subject,
                                  java.lang.Class configClass,
                                  long time)
        Creates an event of a given type and for the specified subject and time.
        Parameters:
        type - device event type
        subject - event subject
        configClass - configuration class
        time - occurrence time
      • NetworkConfigEvent

        public NetworkConfigEvent​(NetworkConfigEvent.Type type,
                                  java.lang.Object subject,
                                  Config config,
                                  Config prevConfig,
                                  java.lang.Class configClass)
        Creates an event of a given type and for the specified subject, previous config and time.
        Parameters:
        type - device event type
        subject - event subject
        configClass - configuration class
        config - current config
        prevConfig - previous config
    • Method Detail

      • configClass

        public java.lang.Class configClass()
        Returns the class of configuration that has been changed.
        Returns:
        configuration class
      • config

        public java.util.Optional<Config> config()
        Returns current config.
        Returns:
        current config; value presents only when the type is CONFIG_ADDED or CONFIG_UPDATED
      • prevConfig

        public java.util.Optional<Config> prevConfig()
        Returns previous config.
        Returns:
        previous config; value presents only when the type is CONFIG_UPDATED or CONFIG_REMOVED