Class GrpcConnectionServiceStub (2.18.0)

public class GrpcConnectionServiceStub extends ConnectionServiceStub

gRPC stub implementation for the ConnectionService service API.

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

Inheritance

java.lang.Object > ConnectionServiceStub > GrpcConnectionServiceStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

create(ConnectionServiceStubSettings settings)

public static final GrpcConnectionServiceStub create(ConnectionServiceStubSettings settings)
Parameter
NameDescription
settingsConnectionServiceStubSettings
Returns
TypeDescription
GrpcConnectionServiceStub
Exceptions
TypeDescription
IOException

Constructors

GrpcConnectionServiceStub(ConnectionServiceStubSettings settings, ClientContext clientContext)

protected GrpcConnectionServiceStub(ConnectionServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcConnectionServiceStub, 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
settingsConnectionServiceStubSettings
clientContextClientContext

GrpcConnectionServiceStub(ConnectionServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcConnectionServiceStub(ConnectionServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcConnectionServiceStub, 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
settingsConnectionServiceStubSettings
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

listConnectionsCallable()

public UnaryCallable<ListConnectionsRequest,ListConnectionsResponse> listConnectionsCallable()
Returns
TypeDescription
UnaryCallable<ListConnectionsRequest,ListConnectionsResponse>
Overrides

listConnectionsPagedCallable()

public UnaryCallable<ListConnectionsRequest,ConnectionServiceClient.ListConnectionsPagedResponse> listConnectionsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListConnectionsRequest,ListConnectionsPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()