Package 

Interface EngagementFile

    • Method Detail

      • on

         abstract <T> void on(EngagementFile.FileEvent<T> event, Consumer<T> listener)

        Registers event listeners for EngagementFile.

        If a listener is added while the EngagementFile is processing an event,it is not triggered with the current event.

        If multiple identical listeners are registered on the same event typethe duplicate instances are discarded. They do not cause the listenerto be called twice and do not need to be removed with the off method.

        Parameters:
        event - One of Events
        listener - Event listener to register
      • off

         abstract <T> void off(EngagementFile.FileEvent<T> event, Consumer<T> listener)

        Removes event listeners from the EngagementFile.

        If an event listener is removed while the EngagementFile is processing an event,it is not triggered with the current event.

        Calling {@code off} with arguments which do not identify any currently registeredlistener has no effect.

        Parameters:
        event - One of Events
        listener - Event listener to remove