Package com.amazonaws.test.util
Class ProgressListenerWithEventCodeVerification
java.lang.Object
com.amazonaws.event.SyncProgressListener
com.amazonaws.test.util.ProgressListenerWithEventCodeVerification
- All Implemented Interfaces:
DeliveryMode
,ProgressListener
Validates the events received by the progress listener.
-
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 TypeMethodDescriptionvoid
progressChanged
(ProgressEvent progressEvent) Called when progress has changed, such as additional bytes transferred, transfer failed, etc.void
reset()
Methods inherited from class com.amazonaws.event.SyncProgressListener
isSyncCallSafe
-
Constructor Details
-
ProgressListenerWithEventCodeVerification
-
-
Method Details
-
progressChanged
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)
.- Parameters:
progressEvent
- The event describing the progress change.- See Also:
-
reset
public void reset()
-