@Deprecated public class LegacyS3ProgressListener extends Object implements ProgressListener, DeliveryMode
ProgressListener
interface.ProgressListener
,
ProgressListener
ProgressListener.ExceptionReporter, ProgressListener.NoOpProgressListener
DeliveryMode.Check
NOOP
Constructor and Description |
---|
LegacyS3ProgressListener(ProgressListener listener)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isSyncCallSafe()
Deprecated.
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)
Deprecated.
Called when progress has changed, such as additional bytes transferred,
transfer failed, etc.
|
ProgressListener |
unwrap()
Deprecated.
|
public LegacyS3ProgressListener(ProgressListener listener)
public ProgressListener unwrap()
public void progressChanged(ProgressEvent progressEvent)
ProgressListener
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)
.
progressChanged
in interface ProgressListener
progressEvent
- The event describing the progress change.SDKProgressPublisher
,
ProgressListener.ExceptionReporter
public boolean isSyncCallSafe()
DeliveryMode
isSyncCallSafe
in interface DeliveryMode
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.