Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8151844

Chain consumer execution using Consumer::andThen in LambdaMultipleChangeListenerHandler

XMLWordPrintable

      Currently LambdaMultipleChangeListenerHandler maintains a list of all registered consumers. These consumers are executed in the order they are registered.

      Since Consumer already supports chaining of method calls using Consumer::andThen, we should consider using it instead of maintaining a list of consumers.

      The chained Consumer may be returned when unregistering change listener (JDK-8151617).

            jgiles Jonathan Giles
            asarkar Anirvan Sarkar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: