Class RelayProductListener

    • Field Detail

      • SENDER_TYPE_PROPERTY

        public static final java.lang.String SENDER_TYPE_PROPERTY
        property for senderType
        See Also:
        Constant Field Values
      • SENDER_TYPE_AWS

        public static final java.lang.String SENDER_TYPE_AWS
        property saying the sender type is aws
        See Also:
        Constant Field Values
    • Constructor Detail

      • RelayProductListener

        public RelayProductListener()
        Empty constructor for configurable, will configure as a SocketProductSender.
      • RelayProductListener

        public RelayProductListener​(ProductSender sender)
        Construct a RelayProductListener using a custom ProductSender.
        Parameters:
        sender - the sender to use.
    • Method Detail

      • configure

        public void configure​(Config config)
                       throws java.lang.Exception
        Creates a SocketProductSender and uses its configure method.
        Specified by:
        configure in interface Configurable
        Overrides:
        configure in class DefaultNotificationListener
        Parameters:
        config - the Config object with settings.
        Throws:
        java.lang.Exception - if configuration exceptions occur.
      • setName

        public void setName​(java.lang.String name)
        Description copied from interface: Configurable
        Set this object name. This method is typically called by a Config object when the configurable object is loaded out of a config file. name will be set to the config section.
        Specified by:
        setName in interface Configurable
        Overrides:
        setName in class DefaultConfigurable
        Parameters:
        name - the name.
      • startup

        public void startup()
                     throws java.lang.Exception
        Call the sender startup method.
        Specified by:
        startup in interface Configurable
        Overrides:
        startup in class DefaultNotificationListener
        Throws:
        java.lang.Exception - if exceptions occur while starting.