Class DefaultStorageListener

    • Constructor Detail

      • DefaultStorageListener

        public DefaultStorageListener()
    • Method Detail

      • configure

        public void configure​(Config arg0)
                       throws java.lang.Exception
        Description copied from class: DefaultConfigurable
        Process configuration settings. Called before startup().
        Specified by:
        configure in interface Configurable
        Overrides:
        configure in class DefaultConfigurable
        Parameters:
        arg0 - the Config object with settings.
        Throws:
        java.lang.Exception - if configuration exceptions occur.
      • onStorageEvent

        public void onStorageEvent​(StorageEvent event)
        Simple dispatch method for listeners who are only interested in certain types of StorageEvents.
        Specified by:
        onStorageEvent in interface StorageListener
        Parameters:
        event - The event that triggered the call
      • onProductStored

        public void onProductStored​(StorageEvent event)
                             throws java.lang.Exception
        Dispatched method called when the type of event is StorageEvent.StorageEventType.PRODUCT_STORED.
        Parameters:
        event - The event that triggered the call
        Throws:
        java.lang.Exception - if error occurs
      • onProductRemoved

        public void onProductRemoved​(StorageEvent event)
                              throws java.lang.Exception
        Dispatched method called when the type of event is StorageEvent.StorageEventType.PRODUCT_REMOVED.
        Parameters:
        event - The event that triggered the call
        Throws:
        java.lang.Exception - if error occurs