Package com.amazonaws.services.s3.model
Class LegacyS3ProgressListener
java.lang.Object
com.amazonaws.services.s3.model.LegacyS3ProgressListener
- All Implemented Interfaces:
DeliveryMode
,ProgressListener
@Deprecated
public class LegacyS3ProgressListener
extends Object
implements ProgressListener, DeliveryMode
Deprecated.
A proxy class that wraps the deprecated S3 progress listener and implements
the new
ProgressListener
interface.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.amazonaws.event.DeliveryMode
DeliveryMode.Check
Nested classes/interfaces inherited from interface com.amazonaws.event.ProgressListener
ProgressListener.ExceptionReporter, ProgressListener.NoOpProgressListener
-
Field Summary
Fields inherited from interface com.amazonaws.event.ProgressListener
NOOP
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
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.unwrap()
Deprecated.
-
Constructor Details
-
LegacyS3ProgressListener
Deprecated.
-
-
Method Details
-
unwrap
Deprecated. -
progressChanged
Deprecated.Description copied from interface:ProgressListener
Called when progress has changed, such as additional bytes transferred, transfer failed, etc. The execution of the callback of this listener is managed bySDKProgressPublisher
. 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)
.- Specified by:
progressChanged
in interfaceProgressListener
- Parameters:
progressEvent
- The event describing the progress change.- See Also:
-
isSyncCallSafe
public boolean isSyncCallSafe()Deprecated.Description copied from interface:DeliveryMode
Returns true if it is safe to make a synchronous callback to the implementing listener without the risk of incurring undue latency; false otherwise.- Specified by:
isSyncCallSafe
in interfaceDeliveryMode
-