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(Consumer<TotalProgressEvent> consumer)
Create a new
TotalProgressPullListener that sends events to the given consumer. |
TotalProgressPullListener(String prefix)
Create a new
TotalProgressPullListener that prints a progress bar to
System.out . |
onFinish, onStart, onUpdate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
none
public TotalProgressPullListener(String prefix)
TotalProgressPullListener
that prints a progress bar to
System.out
.prefix
- the prefix to outputpublic TotalProgressPullListener(Consumer<TotalProgressEvent> consumer)
TotalProgressPullListener
that sends events
to the given consumer.consumer
- the consumer that receives progress
events