Interface IProducer<V>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void addListener​(org.symphonyoss.s2.fugue.pipeline.IConsumer<V> listener)
      Add a listener which will be notified for each new object created.
      boolean removeListener​(org.symphonyoss.s2.fugue.pipeline.IConsumer<V> listener)
      Remove the give listener.
    • Method Detail

      • addListener

        void addListener​(org.symphonyoss.s2.fugue.pipeline.IConsumer<V> listener)
        Add a listener which will be notified for each new object created.
        Parameters:
        listener - A listener for new objects.
      • removeListener

        boolean removeListener​(org.symphonyoss.s2.fugue.pipeline.IConsumer<V> listener)
        Remove the give listener.
        Parameters:
        listener - A listener for new objects.
        Returns:
        true if the listener was removed, false if the given listener was not registered.