public static class GcsUtil.GcsUtilFactory extends java.lang.Object implements DefaultValueFactory<GcsUtil>
DefaultValueFactory
able to create a GcsUtil
using any transport
flags specified on the PipelineOptions
.Constructor and Description |
---|
GcsUtilFactory() |
Modifier and Type | Method and Description |
---|---|
GcsUtil |
create(PipelineOptions options)
Returns an instance of
GcsUtil based on the PipelineOptions . |
static GcsUtil |
create(PipelineOptions options,
Storage storageClient,
com.google.api.client.http.HttpRequestInitializer httpRequestInitializer,
java.util.concurrent.ExecutorService executorService,
@Nullable java.lang.Integer uploadBufferSizeBytes)
Returns an instance of
GcsUtil based on the given parameters. |
public GcsUtil create(PipelineOptions options)
GcsUtil
based on the PipelineOptions
.
If no instance has previously been created, one is created and the value stored in options
.
create
in interface DefaultValueFactory<GcsUtil>
options
- The current pipeline options.public static GcsUtil create(PipelineOptions options, Storage storageClient, com.google.api.client.http.HttpRequestInitializer httpRequestInitializer, java.util.concurrent.ExecutorService executorService, @Nullable java.lang.Integer uploadBufferSizeBytes)
GcsUtil
based on the given parameters.