Class GrpcQueryServiceStub (3.13.0)

public class GrpcQueryServiceStub extends QueryServiceStub

gRPC stub implementation for the QueryService service API.

This class is for advanced usage and reflects the underlying API directly.

Inheritance

java.lang.Object > QueryServiceStub > GrpcQueryServiceStub

Static Methods

create(ClientContext clientContext)

public static final GrpcQueryServiceStub create(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext
Returns
TypeDescription
GrpcQueryServiceStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcQueryServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryGrpcStubCallableFactory
Returns
TypeDescription
GrpcQueryServiceStub
Exceptions
TypeDescription
IOException

create(QueryServiceStubSettings settings)

public static final GrpcQueryServiceStub create(QueryServiceStubSettings settings)
Parameter
NameDescription
settingsQueryServiceStubSettings
Returns
TypeDescription
GrpcQueryServiceStub
Exceptions
TypeDescription
IOException

Constructors

GrpcQueryServiceStub(QueryServiceStubSettings settings, ClientContext clientContext)

protected GrpcQueryServiceStub(QueryServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcQueryServiceStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.

Parameters
NameDescription
settingsQueryServiceStubSettings
clientContextClientContext

GrpcQueryServiceStub(QueryServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcQueryServiceStub(QueryServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcQueryServiceStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.

Parameters
NameDescription
settingsQueryServiceStubSettings
clientContextClientContext
callableFactoryGrpcStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
NameDescription
durationlong
unitTimeUnit
Returns
TypeDescription
boolean
Exceptions
TypeDescription
InterruptedException

close()

public final void close()
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

queryTimeSeriesCallable()

public UnaryCallable<QueryTimeSeriesRequest,QueryTimeSeriesResponse> queryTimeSeriesCallable()
Returns
TypeDescription
UnaryCallable<QueryTimeSeriesRequest,QueryTimeSeriesResponse>
Overrides

queryTimeSeriesPagedCallable()

public UnaryCallable<QueryTimeSeriesRequest,QueryServiceClient.QueryTimeSeriesPagedResponse> queryTimeSeriesPagedCallable()
Returns
TypeDescription
UnaryCallable<QueryTimeSeriesRequest,QueryTimeSeriesPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()