Package com.backblaze.b2.client
Class B2LargeFileStorer
- java.lang.Object
-
- com.backblaze.b2.client.B2LargeFileStorer
-
public class B2LargeFileStorer extends java.lang.Object
A class for handling the creation of large files.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static B2LargeFileStorer
forLocalContent(B2FileVersion largeFileVersion, B2ContentSource contentSource, com.backblaze.b2.client.B2PartSizes partSizes, com.backblaze.b2.client.B2AccountAuthorizationCache accountAuthCache, B2StorageClientWebifier webifier, com.backblaze.b2.client.B2Retryer retryer, java.util.function.Supplier<B2RetryPolicy> retryPolicySupplier, java.util.concurrent.ExecutorService executor)
static B2LargeFileStorer
forLocalContent(B2StoreLargeFileRequest storeLargeFileRequest, B2ContentSource contentSource, com.backblaze.b2.client.B2PartSizes partSizes, com.backblaze.b2.client.B2AccountAuthorizationCache accountAuthCache, B2StorageClientWebifier webifier, com.backblaze.b2.client.B2Retryer retryer, java.util.function.Supplier<B2RetryPolicy> retryPolicySupplier, java.util.concurrent.ExecutorService executor)
static B2LargeFileStorer
forLocalContent(B2StoreLargeFileRequest storeLargeFileRequest, B2ContentSource contentSource, com.backblaze.b2.client.B2PartSizes partSizes, com.backblaze.b2.client.B2AccountAuthorizationCache accountAuthCache, B2StorageClientWebifier webifier, com.backblaze.b2.client.B2Retryer retryer, java.util.function.Supplier<B2RetryPolicy> retryPolicySupplier, java.util.concurrent.ExecutorService executor, boolean allowGaps)
B2Part
uploadPart(int partNumber, B2ContentSource contentSource, B2UploadListener uploadListener)
Stores a part by uploading the bytes from a content source.
-
-
-
Method Detail
-
forLocalContent
public static B2LargeFileStorer forLocalContent(B2FileVersion largeFileVersion, B2ContentSource contentSource, com.backblaze.b2.client.B2PartSizes partSizes, com.backblaze.b2.client.B2AccountAuthorizationCache accountAuthCache, B2StorageClientWebifier webifier, com.backblaze.b2.client.B2Retryer retryer, java.util.function.Supplier<B2RetryPolicy> retryPolicySupplier, java.util.concurrent.ExecutorService executor) throws B2Exception
- Throws:
B2Exception
-
forLocalContent
public static B2LargeFileStorer forLocalContent(B2StoreLargeFileRequest storeLargeFileRequest, B2ContentSource contentSource, com.backblaze.b2.client.B2PartSizes partSizes, com.backblaze.b2.client.B2AccountAuthorizationCache accountAuthCache, B2StorageClientWebifier webifier, com.backblaze.b2.client.B2Retryer retryer, java.util.function.Supplier<B2RetryPolicy> retryPolicySupplier, java.util.concurrent.ExecutorService executor) throws B2Exception
- Throws:
B2Exception
-
forLocalContent
public static B2LargeFileStorer forLocalContent(B2StoreLargeFileRequest storeLargeFileRequest, B2ContentSource contentSource, com.backblaze.b2.client.B2PartSizes partSizes, com.backblaze.b2.client.B2AccountAuthorizationCache accountAuthCache, B2StorageClientWebifier webifier, com.backblaze.b2.client.B2Retryer retryer, java.util.function.Supplier<B2RetryPolicy> retryPolicySupplier, java.util.concurrent.ExecutorService executor, boolean allowGaps) throws B2Exception
- Throws:
B2Exception
-
uploadPart
public B2Part uploadPart(int partNumber, B2ContentSource contentSource, B2UploadListener uploadListener) throws java.io.IOException, B2Exception
Stores a part by uploading the bytes from a content source.- Throws:
java.io.IOException
B2Exception
-
-