Class ProgressEventHandler

  • All Implemented Interfaces:
    java.util.function.Consumer<ProgressEvent>

    public class ProgressEventHandler
    extends java.lang.Object
    implements java.util.function.Consumer<ProgressEvent>
    Handles ProgressEvents by accumulating an overall progress and keeping track of which Allocations are complete.

    This implementation is thread-safe.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  ProgressEventHandler.Update
      Contains the accumulated progress and which "leaf" tasks are not yet complete.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void accept​(ProgressEvent progressEvent)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.function.Consumer

        andThen
    • Constructor Detail

    • Method Detail

      • accept

        public void accept​(ProgressEvent progressEvent)
        Specified by:
        accept in interface java.util.function.Consumer<ProgressEvent>