public interface ProgressListener
This class could be used for both Amazon S3 and Amazon Glacier clients. The legacy Amazon S3 progress listener com.ibm.cloud.objectstorage.services.s3.model.ProgressListener has been deprecated in favor of this new class.
ProgressEvent
Modifier and Type | Interface and Description |
---|---|
static class |
ProgressListener.ExceptionReporter
A utility class for capturing and reporting the first exception thrown by
a given progress listener.
|
static class |
ProgressListener.NoOpProgressListener |
Modifier and Type | Field and Description |
---|---|
static ProgressListener |
NOOP |
Modifier and Type | Method and Description |
---|---|
void |
progressChanged(ProgressEvent progressEvent)
Called when progress has changed, such as additional bytes transferred,
transfer failed, etc.
|
static final ProgressListener NOOP
void progressChanged(ProgressEvent progressEvent)
SDKProgressPublisher
. Implementation of this interface
should never block.
If the implementation follows the best practice and doesn't block, it
should then extends from SyncProgressListener
.
Note any exception thrown by the listener will get ignored.
Should there be need to capture any such exception, you may consider
wrapping the listener with ProgressListener.ExceptionReporter.wrap(ProgressListener)
.
progressEvent
- The event describing the progress change.SDKProgressPublisher
,
ProgressListener.ExceptionReporter
Copyright © 2024. All rights reserved.