public class LoggingMediaHttpUploaderProgressListener extends Object implements com.google.api.client.googleapis.media.MediaHttpUploaderProgressListener
A new instance of this progress listener should be used for each MediaHttpUploader.
Constructor and Description |
---|
LoggingMediaHttpUploaderProgressListener(String name,
long minLoggingInterval)
Creates a upload progress listener that emits relevant statistics about the progress of the
upload.
|
Modifier and Type | Method and Description |
---|---|
void |
progressChanged(com.google.api.client.googleapis.media.MediaHttpUploader uploader) |
public LoggingMediaHttpUploaderProgressListener(String name, long minLoggingInterval)
name
- The name of the resource being uploaded.minLoggingInterval
- The minimum amount of time (millis) between logging upload progress.public void progressChanged(com.google.api.client.googleapis.media.MediaHttpUploader uploader) throws IOException
progressChanged
in interface com.google.api.client.googleapis.media.MediaHttpUploaderProgressListener
IOException
Copyright © 2024. All rights reserved.