Class ProgressEventHandler
- java.lang.Object
-
- com.google.cloud.tools.jib.event.progress.ProgressEventHandler
-
- All Implemented Interfaces:
java.util.function.Consumer<ProgressEvent>
public class ProgressEventHandler extends java.lang.Object implements java.util.function.Consumer<ProgressEvent>
HandlesProgressEvent
s by accumulating an overall progress and keeping track of whichAllocation
s 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.
-
Constructor Summary
Constructors Constructor Description ProgressEventHandler(java.util.function.Consumer<ProgressEventHandler.Update> updateNotifier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(ProgressEvent progressEvent)
-
-
-
Constructor Detail
-
ProgressEventHandler
public ProgressEventHandler(java.util.function.Consumer<ProgressEventHandler.Update> updateNotifier)
-
-
Method Detail
-
accept
public void accept(ProgressEvent progressEvent)
- Specified by:
accept
in interfacejava.util.function.Consumer<ProgressEvent>
-
-