public class TotalProgressPullListener extends TotalProgressListener<PullImageUpdateEvent>
UpdateListener that calculates the total progress of the entire pull operation
and publishes TotalProgressEvent.NONE| Constructor and Description |
|---|
TotalProgressPullListener(java.util.function.Consumer<TotalProgressEvent> consumer)
Create a new
TotalProgressPullListener that sends events to the given consumer. |
TotalProgressPullListener(java.lang.String prefix)
Create a new
TotalProgressPullListener that prints a progress bar to
System.out. |
onFinish, onStart, onUpdateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnonepublic TotalProgressPullListener(java.lang.String prefix)
TotalProgressPullListener that prints a progress bar to
System.out.prefix - the prefix to outputpublic TotalProgressPullListener(java.util.function.Consumer<TotalProgressEvent> consumer)
TotalProgressPullListener that sends events to the given consumer.consumer - the consumer that receives progress
events