Reputation: 161
I am uploading videos to amazon s3 using Transfer manager. After calling the upload method which is asynchronous i am calling waitForUploadResult().
If the network is not available the flow is blocked until the network is restored. Even exceptions are not thrown if there is no network for a long time.
I need to get notified if network is not available for more than 5 minutes.
Upvotes: 0
Views: 1401
Reputation: 1876
TransferManager is backed by an AmazonS3Client. You can configure the timeout of a S3 client by passing a customized ClientConfiguration object to the client. I hope this will help.
Upvotes: 1