net.netheos.pcsapi.bytesio
Interface ProgressListener

All Known Implementing Classes:
StdoutProgressListener

public interface ProgressListener

Object that listens a progress for instances for downloads and uploads


Method Summary
 void aborted()
          Called when current operation is aborted (may be retried)
 void progress(long current)
          Called when observed lengthly operation has made some progress.
 void setProgressTotal(long total)
           
 

Method Detail

setProgressTotal

void setProgressTotal(long total)
Parameters:
total - total elements

progress

void progress(long current)
Called when observed lengthly operation has made some progress.

Called once with current=0 to indicate process is starting. Note that progress may restart from 0 (in case an upload or download fails and is restarted).

Parameters:
current - current of elements passed so far

aborted

void aborted()
Called when current operation is aborted (may be retried)



Copyright © 2014. All Rights Reserved.