public class TotalProgressPushListener extends TotalProgressListener<PushImageUpdateEvent>
UpdateListener
that calculates the total progress of the entire push operation
and publishes TotalProgressEvent
.NONE
Constructor and Description |
---|
TotalProgressPushListener(Consumer<TotalProgressEvent> consumer)
Create a new
TotalProgressPushListener that sends events to the given consumer. |
TotalProgressPushListener(String prefix)
Create a new
TotalProgressPushListener that prints a progress bar to
System.out . |
onFinish, onStart, onUpdate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
none
public TotalProgressPushListener(String prefix)
TotalProgressPushListener
that prints a progress bar to
System.out
.prefix
- the prefix to outputpublic TotalProgressPushListener(Consumer<TotalProgressEvent> consumer)
TotalProgressPushListener
that sends events
to the given consumer.consumer
- the consumer that receives progress
events