Class EnhancedBigQueryReadStub
java.lang.Object
com.google.cloud.bigquery.storage.v1.stub.EnhancedBigQueryReadStub
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource
,AutoCloseable
public class EnhancedBigQueryReadStub
extends Object
implements com.google.api.gax.core.BackgroundResource
Enhanced stub class for BigQuery Storage API.
This class is for advanced usage and reflects the underlying API directly.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
awaitTermination
(long duration, TimeUnit unit) void
close()
static EnhancedBigQueryReadStub
create
(EnhancedBigQueryReadStubSettings settings) static EnhancedBigQueryReadStub
create
(EnhancedBigQueryReadStubSettings settings, BigQueryReadSettings.RetryAttemptListener readRowsRetryAttemptListener) com.google.api.gax.rpc.UnaryCallable<CreateReadSessionRequest,
ReadSession> boolean
boolean
com.google.api.gax.rpc.ServerStreamingCallable<ReadRowsRequest,
ReadRowsResponse> void
shutdown()
void
com.google.api.gax.rpc.UnaryCallable<SplitReadStreamRequest,
SplitReadStreamResponse>
-
Method Details
-
create
public static EnhancedBigQueryReadStub create(EnhancedBigQueryReadStubSettings settings) throws IOException - Throws:
IOException
-
create
public static EnhancedBigQueryReadStub create(EnhancedBigQueryReadStubSettings settings, BigQueryReadSettings.RetryAttemptListener readRowsRetryAttemptListener) throws IOException - Throws:
IOException
-
createReadSessionCallable
public com.google.api.gax.rpc.UnaryCallable<CreateReadSessionRequest,ReadSession> createReadSessionCallable() -
readRowsCallable
public com.google.api.gax.rpc.ServerStreamingCallable<ReadRowsRequest,ReadRowsResponse> readRowsCallable() -
splitReadStreamCallable
public com.google.api.gax.rpc.UnaryCallable<SplitReadStreamRequest,SplitReadStreamResponse> splitReadStreamCallable() -
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
shutdown
public void shutdown()- Specified by:
shutdown
in interfacecom.google.api.gax.core.BackgroundResource
-
isShutdown
public boolean isShutdown()- Specified by:
isShutdown
in interfacecom.google.api.gax.core.BackgroundResource
-
isTerminated
public boolean isTerminated()- Specified by:
isTerminated
in interfacecom.google.api.gax.core.BackgroundResource
-
shutdownNow
public void shutdownNow()- Specified by:
shutdownNow
in interfacecom.google.api.gax.core.BackgroundResource
-
awaitTermination
- Specified by:
awaitTermination
in interfacecom.google.api.gax.core.BackgroundResource
- Throws:
InterruptedException
-
getStubSettings
-