public abstract class AbstractGoogleAsyncWriteChannel<T extends com.google.api.client.googleapis.services.AbstractGoogleClientRequest<S>,S> extends BaseAbstractGoogleAsyncWriteChannel<S>
channelOptions, logger, threadPool, uploadOperation
Constructor and Description |
---|
AbstractGoogleAsyncWriteChannel(ClientRequestHelper<S> clientRequestHelper,
ExecutorService threadPool,
AsyncWriteChannelOptions options)
Construct a new channel using the given ExecutorService to run background uploads.
|
Modifier and Type | Method and Description |
---|---|
abstract T |
createRequest(com.google.api.client.http.InputStreamContent inputStream)
Create an API request to upload the given InputStreamContent.
|
protected abstract String |
getContentType() |
void |
startUpload(InputStream pipeSource)
Create a new thread which handles the upload.
|
close, createResponseFromException, getResourceString, handleResponse, initialize, isDirectUploadEnabled, isOpen, write
public AbstractGoogleAsyncWriteChannel(ClientRequestHelper<S> clientRequestHelper, ExecutorService threadPool, AsyncWriteChannelOptions options)
public abstract T createRequest(com.google.api.client.http.InputStreamContent inputStream) throws IOException
IOException
public void startUpload(InputStream pipeSource) throws IOException
BaseAbstractGoogleAsyncWriteChannel
startUpload
in class BaseAbstractGoogleAsyncWriteChannel<S>
IOException
protected abstract String getContentType()
Copyright © 2022. All rights reserved.