Package com.amazonaws.event
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 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 Constructor Description NoOpProgressListener()
-
Method Summary
All Methods Instance Methods Concrete Methods 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.
-
-
-
Method Detail
-
isSyncCallSafe
public boolean isSyncCallSafe()
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
-
progressChanged
public void progressChanged(ProgressEvent progressEvent)
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:
SDKProgressPublisher
,ProgressListener.ExceptionReporter
-
-