@Generated(value="by gapic-generator") @BetaApi(value="A restructuring of stub classes is planned, so this may break in the future") public class GrpcCompletionStub extends CompletionStub
This class is for advanced usage and reflects the underlying API directly.
| Modifier | Constructor and Description |
|---|---|
protected |
GrpcCompletionStub(CompletionStubSettings settings,
com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of GrpcCompletionStub, using the given settings.
|
protected |
GrpcCompletionStub(CompletionStubSettings settings,
com.google.api.gax.rpc.ClientContext clientContext,
com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)
Constructs an instance of GrpcCompletionStub, using the given settings.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
awaitTermination(long duration,
TimeUnit unit) |
void |
close() |
com.google.api.gax.rpc.UnaryCallable<CompleteQueryRequest,CompleteQueryResponse> |
completeQueryCallable() |
static GrpcCompletionStub |
create(com.google.api.gax.rpc.ClientContext clientContext) |
static GrpcCompletionStub |
create(com.google.api.gax.rpc.ClientContext clientContext,
com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) |
static GrpcCompletionStub |
create(CompletionStubSettings settings) |
boolean |
isShutdown() |
boolean |
isTerminated() |
void |
shutdown() |
void |
shutdownNow() |
protected GrpcCompletionStub(CompletionStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
IOExceptionprotected GrpcCompletionStub(CompletionStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
IOExceptionpublic static final GrpcCompletionStub create(CompletionStubSettings settings) throws IOException
IOExceptionpublic static final GrpcCompletionStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
IOExceptionpublic static final GrpcCompletionStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
IOExceptionpublic com.google.api.gax.rpc.UnaryCallable<CompleteQueryRequest,CompleteQueryResponse> completeQueryCallable()
completeQueryCallable in class CompletionStubpublic final void close()
close in interface AutoCloseableclose in class CompletionStubpublic void shutdown()
public boolean isShutdown()
public boolean isTerminated()
public void shutdownNow()
public boolean awaitTermination(long duration,
TimeUnit unit)
throws InterruptedException
InterruptedExceptionCopyright © 2019 Google LLC. All rights reserved.