Package com.amazonaws.test.util
Class ProgressListenerWithEventCodeVerification
- java.lang.Object
-
- com.amazonaws.event.SyncProgressListener
-
- com.amazonaws.test.util.ProgressListenerWithEventCodeVerification
-
- All Implemented Interfaces:
DeliveryMode
,ProgressListener
public class ProgressListenerWithEventCodeVerification extends SyncProgressListener
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 Constructor Description ProgressListenerWithEventCodeVerification(ProgressEventType... types)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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 Detail
-
ProgressListenerWithEventCodeVerification
public ProgressListenerWithEventCodeVerification(ProgressEventType... types)
-
-
Method Detail
-
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)
.- Parameters:
progressEvent
- The event describing the progress change.- See Also:
SDKProgressPublisher
,ProgressListener.ExceptionReporter
-
reset
public void reset()
-
-