Interface ResumableUploadFuture<ResponseT> (2.91.0)

public interface ResumableUploadFuture<ResponseT> extends ApiFuture<ResponseT>

A specialized ApiFuture for tracking and controlling an in-flight resumable upload.

The payload java.io.InputStream supplied when initiating or resuming the upload is managed by this future and will be closed automatically upon completion, failure, or cancellation.

Implements

com.google.api.core.ApiFuture<ResponseT>

Type Parameter

Name Description
ResponseT

Methods

getEffectiveChunkSize()

public abstract @Nullable Integer getEffectiveChunkSize()

Returns the effective chunk size in bytes aligned to the server's chunk granularity, or null if session initiation (or the initial status query when resuming) is in progress or did not complete successfully.

Returns
Type Description
@org.jspecify.annotations.Nullable java.lang.Integer

getUploadSessionUrl()

public abstract @Nullable String getUploadSessionUrl()

Returns the upload session URL, or null if session initiation is in progress or did not complete successfully.

Returns
Type Description
@org.jspecify.annotations.Nullable java.lang.String