ProgressListener.ExceptionReporter
, ProgressListener.NoOpProgressListener
, ProgressListenerChain
, ProgressListenerWithEventCodeVerification
, ProgressTracker
, SyncProgressListener
public interface ProgressListener
This class could be used for both Amazon S3 and Amazon Glacier clients. The legacy Amazon S3 progress listener software.amazon.awssdk.services.s3.model.ProgressListener has been deprecated in favor of this new class.
ProgressEvent
Modifier and Type | Interface | 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 | Description |
---|---|---|
static ProgressListener |
NOOP |
Modifier and Type | Method | 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 © 2017 Amazon Web Services, Inc. All Rights Reserved.