Class TransferListenerInvoker
java.lang.Object
software.amazon.awssdk.transfer.s3.internal.progress.TransferListenerInvoker
- All Implemented Interfaces:
TransferListener
An SDK-internal helper class that composes multiple provided
TransferListener
s together into a single logical chain.
Invocations on TransferListenerInvoker
will be delegated to the underlying chain, while suppressing (and logging) any
exceptions that are thrown.-
Nested Class Summary
Nested classes/interfaces inherited from interface software.amazon.awssdk.transfer.s3.progress.TransferListener
TransferListener.Context
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Additional bytes have been submitted or received.void
The transfer has completed successfully.void
The transfer failed.void
A new transfer has been initiated.
-
Constructor Details
-
TransferListenerInvoker
-
-
Method Details
-
transferInitiated
Description copied from interface:TransferListener
A new transfer has been initiated. This method is called exactly once per transfer.Available context attributes:
- Specified by:
transferInitiated
in interfaceTransferListener
-
bytesTransferred
Description copied from interface:TransferListener
Additional bytes have been submitted or received. This method may be called many times per transfer, depending on the transfer size and I/O buffer sizes.Available context attributes:
- Specified by:
bytesTransferred
in interfaceTransferListener
-
transferComplete
Description copied from interface:TransferListener
The transfer has completed successfully. This method is called exactly once for a successful transfer.Available context attributes:
- Specified by:
transferComplete
in interfaceTransferListener
-
transferFailed
Description copied from interface:TransferListener
The transfer failed. This method is called exactly once for a failed transfer.Available context attributes:
- Specified by:
transferFailed
in interfaceTransferListener
-