Class TransferListenerInvoker
- java.lang.Object
-
- software.amazon.awssdk.transfer.s3.internal.progress.TransferListenerInvoker
-
- All Implemented Interfaces:
TransferListener
public class TransferListenerInvoker extends Object implements TransferListener
An SDK-internal helper class that composes multiple providedTransferListener
s together into a single logical chain. Invocations onTransferListenerInvoker
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
Constructors Constructor Description TransferListenerInvoker(List<TransferListener> listeners)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
bytesTransferred(TransferListener.Context.BytesTransferred context)
Additional bytes have been submitted or received.void
transferComplete(TransferListener.Context.TransferComplete context)
The transfer has completed successfully.void
transferFailed(TransferListener.Context.TransferFailed context)
The transfer failed.void
transferInitiated(TransferListener.Context.TransferInitiated context)
A new transfer has been initiated.
-
-
-
Constructor Detail
-
TransferListenerInvoker
public TransferListenerInvoker(List<TransferListener> listeners)
-
-
Method Detail
-
transferInitiated
public void transferInitiated(TransferListener.Context.TransferInitiated context)
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
public void bytesTransferred(TransferListener.Context.BytesTransferred context)
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
public void transferComplete(TransferListener.Context.TransferComplete context)
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
public void transferFailed(TransferListener.Context.TransferFailed context)
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
-
-