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