Package com.emc.object.s3.lfu
Interface LargeFileUpload
-
public interface LargeFileUpload
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
waitForCompletion
void waitForCompletion()
Blocks until the upload is complete.
-
waitForCompletion
void waitForCompletion(long timeout, java.util.concurrent.TimeUnit timeoutUnit) throws java.util.concurrent.TimeoutException
Waits if necessary for at most the given time for the upload to complete.- Parameters:
timeout
- the maximum time to waittimeoutUnit
- the time unit of the timeout argument- Throws:
java.util.concurrent.TimeoutException
- if the wait timed out
-
pause
LargeFileUploaderResumeContext pause()
Pauses this upload and returns a ResumeContext that can be used to later resume it from the same source data. This method first prevents any part uploads that have not yet started transferring from starting. Then it allows any parts that are currently in-transfer to complete, after which it will return a resume context that contains the upload ID and a list of fully uploaded parts.
-
abort
void abort()
Stops upload activity for this upload and aborts the MPU in the bucket. This method returns immediately.
-
-