DeliveryMode, ProgressListenerpublic static class ProgressListener.NoOpProgressListener extends Object implements ProgressListener, DeliveryMode
DeliveryMode.CheckProgressListener.ExceptionReporter, ProgressListener.NoOpProgressListenerNOOP| Constructor | Description |
|---|---|
NoOpProgressListener() |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
isSyncCallSafe() |
Returns true if it is safe to make a synchronous callback to the
implementing listener without the risk of incurring undue latency; false
otherwise.
|
void |
progressChanged(ProgressEvent progressEvent) |
Called when progress has changed, such as additional bytes transferred,
transfer failed, etc.
|
public boolean isSyncCallSafe()
DeliveryModeisSyncCallSafe in interface DeliveryModepublic void progressChanged(ProgressEvent progressEvent)
ProgressListenerSdkProgressPublisher. 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).
progressChanged in interface ProgressListenerprogressEvent - The event describing the progress change.SdkProgressPublisher,
ProgressListener.ExceptionReporterCopyright © 2017 Amazon Web Services, Inc. All Rights Reserved.