Class ProgressListener.NoOpProgressListener
java.lang.Object
com.amazonaws.event.ProgressListener.NoOpProgressListener
- All Implemented Interfaces:
DeliveryMode, ProgressListener
- Enclosing interface:
ProgressListener
public static class ProgressListener.NoOpProgressListener
extends Object
implements ProgressListener, DeliveryMode
-
Nested Class Summary
Nested classes/interfaces inherited from interface DeliveryMode
DeliveryMode.CheckNested classes/interfaces inherited from interface ProgressListener
ProgressListener.ExceptionReporter, ProgressListener.NoOpProgressListener -
Field Summary
Fields inherited from interface ProgressListener
NOOP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns true if it is safe to make a synchronous callback to the implementing listener without the risk of incurring undue latency; false otherwise.voidprogressChanged(ProgressEvent progressEvent) Called when progress has changed, such as additional bytes transferred, transfer failed, etc.
-
Constructor Details
-
NoOpProgressListener
public NoOpProgressListener()
-
-
Method Details
-
isSyncCallSafe
public boolean isSyncCallSafe()Description copied from interface:DeliveryModeReturns 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:
isSyncCallSafein interfaceDeliveryMode
-
progressChanged
Description copied from interface:ProgressListenerCalled 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:
progressChangedin interfaceProgressListener- Parameters:
progressEvent- The event describing the progress change.- See Also:
-