Class GrpcContextsStub (4.4.0)

public class GrpcContextsStub extends ContextsStub

gRPC stub implementation for the Contexts service API.

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

Inheritance

java.lang.Object > ContextsStub > GrpcContextsStub

Constructors

GrpcContextsStub(ContextsStubSettings settings, ClientContext clientContext)

protected GrpcContextsStub(ContextsStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcContextsStub, 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
settingsContextsStubSettings
clientContextClientContext

GrpcContextsStub(ContextsStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcContextsStub(ContextsStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcContextsStub, 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
settingsContextsStubSettings
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

create(ClientContext clientContext)

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

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

create(ContextsStubSettings settings)

public static final GrpcContextsStub create(ContextsStubSettings settings)
Parameter
NameDescription
settingsContextsStubSettings
Returns
TypeDescription
GrpcContextsStub
Exceptions
TypeDescription
IOException

createContextCallable()

public UnaryCallable<CreateContextRequest,Context> createContextCallable()
Returns
TypeDescription
UnaryCallable<CreateContextRequest,Context>
Overrides

deleteAllContextsCallable()

public UnaryCallable<DeleteAllContextsRequest,Empty> deleteAllContextsCallable()
Returns
TypeDescription
UnaryCallable<DeleteAllContextsRequest,Empty>
Overrides

deleteContextCallable()

public UnaryCallable<DeleteContextRequest,Empty> deleteContextCallable()
Returns
TypeDescription
UnaryCallable<DeleteContextRequest,Empty>
Overrides

getContextCallable()

public UnaryCallable<GetContextRequest,Context> getContextCallable()
Returns
TypeDescription
UnaryCallable<GetContextRequest,Context>
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listContextsCallable()

public UnaryCallable<ListContextsRequest,ListContextsResponse> listContextsCallable()
Returns
TypeDescription
UnaryCallable<ListContextsRequest,ListContextsResponse>
Overrides

listContextsPagedCallable()

public UnaryCallable<ListContextsRequest,ContextsClient.ListContextsPagedResponse> listContextsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListContextsRequest,ListContextsPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateContextCallable()

public UnaryCallable<UpdateContextRequest,Context> updateContextCallable()
Returns
TypeDescription
UnaryCallable<UpdateContextRequest,Context>
Overrides