@FunctionalInterface public interface ProgressMonitor
| Modifier and Type | Method and Description |
|---|---|
void |
accept(String field,
String fileName,
Long bytesWritten,
Long totalBytes)
Accept stats about the current file upload chunk for a file.
|
void accept(String field, String fileName, Long bytesWritten, Long totalBytes)
field - the field name, or 'body' on file downloadsfileName - the name of the file in question if available (InputStreams and byte arrays may not have file names)bytesWritten - the number of bytes that have been uploaded or downloaded so fartotalBytes - the total bytes that will be uploaded or downloaded.
On downloads this depends on the Content-Length header be returned
On uploads this this may be an estimate if an InputStream was usedCopyright © 2020. All rights reserved.