public interface LargeFileUpload
Modifier and Type | Method and Description |
---|---|
void |
abort()
Stops upload activity for this upload and aborts the MPU in the bucket.
|
LargeFileUploaderResumeContext |
pause()
Pauses this upload and returns a ResumeContext that can be used to later resume it from the same source data.
|
void |
waitForCompletion()
Blocks until the upload is complete.
|
void |
waitForCompletion(long timeout,
java.util.concurrent.TimeUnit timeoutUnit)
Waits if necessary for at most the given time for the upload to complete.
|
void waitForCompletion()
void waitForCompletion(long timeout, java.util.concurrent.TimeUnit timeoutUnit) throws java.util.concurrent.TimeoutException
timeout
- the maximum time to waittimeoutUnit
- the time unit of the timeout argumentjava.util.concurrent.TimeoutException
- if the wait timed outLargeFileUploaderResumeContext pause()
void abort()