Class TotalProgressPullListener
java.lang.Object
org.springframework.boot.buildpack.platform.docker.TotalProgressListener<PullImageUpdateEvent>
org.springframework.boot.buildpack.platform.docker.TotalProgressPullListener
- All Implemented Interfaces:
UpdateListener<PullImageUpdateEvent>
UpdateListener
that calculates the total progress of the entire pull operation
and publishes TotalProgressEvent
.- Since:
- 2.3.0
- Author:
- Phillip Webb, Scott Frederick
-
Field Summary
Fields inherited from interface org.springframework.boot.buildpack.platform.docker.UpdateListener
NONE
-
Constructor Summary
ConstructorDescriptionTotalProgressPullListener
(String prefix) Create a newTotalProgressPullListener
that prints a progress bar toSystem.out
.TotalProgressPullListener
(Consumer<TotalProgressEvent> consumer) Create a newTotalProgressPullListener
that sendsevents
to the given consumer. -
Method Summary
Methods inherited from class org.springframework.boot.buildpack.platform.docker.TotalProgressListener
onFinish, onStart, onUpdate
-
Constructor Details
-
TotalProgressPullListener
Create a newTotalProgressPullListener
that prints a progress bar toSystem.out
.- Parameters:
prefix
- the prefix to output
-
TotalProgressPullListener
Create a newTotalProgressPullListener
that sendsevents
to the given consumer.- Parameters:
consumer
- the consumer that receivesprogress events
-