Class GrpcPolicyBasedRoutingServiceStub (1.7.0)

public class GrpcPolicyBasedRoutingServiceStub extends PolicyBasedRoutingServiceStub

gRPC stub implementation for the PolicyBasedRoutingService service API.

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

Inheritance

java.lang.Object > PolicyBasedRoutingServiceStub > GrpcPolicyBasedRoutingServiceStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

create(PolicyBasedRoutingServiceStubSettings settings)

public static final GrpcPolicyBasedRoutingServiceStub create(PolicyBasedRoutingServiceStubSettings settings)
Parameter
NameDescription
settingsPolicyBasedRoutingServiceStubSettings
Returns
TypeDescription
GrpcPolicyBasedRoutingServiceStub
Exceptions
TypeDescription
IOException

Constructors

GrpcPolicyBasedRoutingServiceStub(PolicyBasedRoutingServiceStubSettings settings, ClientContext clientContext)

protected GrpcPolicyBasedRoutingServiceStub(PolicyBasedRoutingServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcPolicyBasedRoutingServiceStub, 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
settingsPolicyBasedRoutingServiceStubSettings
clientContextClientContext

GrpcPolicyBasedRoutingServiceStub(PolicyBasedRoutingServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcPolicyBasedRoutingServiceStub(PolicyBasedRoutingServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcPolicyBasedRoutingServiceStub, 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
settingsPolicyBasedRoutingServiceStubSettings
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

createPolicyBasedRouteCallable()

public UnaryCallable<CreatePolicyBasedRouteRequest,Operation> createPolicyBasedRouteCallable()
Returns
TypeDescription
UnaryCallable<CreatePolicyBasedRouteRequest,Operation>
Overrides

createPolicyBasedRouteOperationCallable()

public OperationCallable<CreatePolicyBasedRouteRequest,PolicyBasedRoute,OperationMetadata> createPolicyBasedRouteOperationCallable()
Returns
TypeDescription
OperationCallable<CreatePolicyBasedRouteRequest,PolicyBasedRoute,OperationMetadata>
Overrides

deletePolicyBasedRouteCallable()

public UnaryCallable<DeletePolicyBasedRouteRequest,Operation> deletePolicyBasedRouteCallable()
Returns
TypeDescription
UnaryCallable<DeletePolicyBasedRouteRequest,Operation>
Overrides

deletePolicyBasedRouteOperationCallable()

public OperationCallable<DeletePolicyBasedRouteRequest,Empty,OperationMetadata> deletePolicyBasedRouteOperationCallable()
Returns
TypeDescription
OperationCallable<DeletePolicyBasedRouteRequest,Empty,OperationMetadata>
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub
Overrides

getPolicyBasedRouteCallable()

public UnaryCallable<GetPolicyBasedRouteRequest,PolicyBasedRoute> getPolicyBasedRouteCallable()
Returns
TypeDescription
UnaryCallable<GetPolicyBasedRouteRequest,PolicyBasedRoute>
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listPolicyBasedRoutesCallable()

public UnaryCallable<ListPolicyBasedRoutesRequest,ListPolicyBasedRoutesResponse> listPolicyBasedRoutesCallable()
Returns
TypeDescription
UnaryCallable<ListPolicyBasedRoutesRequest,ListPolicyBasedRoutesResponse>
Overrides

listPolicyBasedRoutesPagedCallable()

public UnaryCallable<ListPolicyBasedRoutesRequest,PolicyBasedRoutingServiceClient.ListPolicyBasedRoutesPagedResponse> listPolicyBasedRoutesPagedCallable()
Returns
TypeDescription
UnaryCallable<ListPolicyBasedRoutesRequest,ListPolicyBasedRoutesPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()