public class S3ProgressListenerChain extends ProgressListenerChain implements S3ProgressListener
ProgressListener.ExceptionReporter, ProgressListener.NoOpProgressListener
DeliveryMode.Check
NOOP
Constructor and Description |
---|
S3ProgressListenerChain(ProgressListener... listeners)
Create a listener chain that directly passes all the progress events to
the specified listeners.
|
Modifier and Type | Method and Description |
---|---|
void |
onPersistableTransfer(PersistableTransfer persistableTransfer)
Called when the information to resume an upload/download operation is
available, The execution of the callback of this listener is managed by
S3ProgressPublisher . |
addProgressListener, isSyncCallSafe, progressChanged, removeProgressListener
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
progressChanged
public S3ProgressListenerChain(ProgressListener... listeners)
listeners
- only listeners of type S3ProgressListener
will be notified with the S3 transfer events.public void onPersistableTransfer(PersistableTransfer persistableTransfer)
S3ProgressListener
S3ProgressPublisher
. Implementation of this interface should
never block.
If the implementation follows the best practice and doesn't block, it
should then extends from S3SyncProgressListener
.
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)
.
onPersistableTransfer
in interface S3ProgressListener
persistableTransfer
- A non null opaque token used to resume an upload or download.S3ProgressPublisher
,
ProgressListener.ExceptionReporter