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.
Static Methods
create(ClientContext clientContext)
public static final GrpcPolicyBasedRoutingServiceStub create(ClientContext clientContext)
create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
public static final GrpcPolicyBasedRoutingServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
create(PolicyBasedRoutingServiceStubSettings settings)
public static final GrpcPolicyBasedRoutingServiceStub create(PolicyBasedRoutingServiceStubSettings settings)
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.
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.
Methods
awaitTermination(long duration, TimeUnit unit)
public boolean awaitTermination(long duration, TimeUnit unit)
close()
public final void close()
Overrides
createPolicyBasedRouteCallable()
public UnaryCallable<CreatePolicyBasedRouteRequest,Operation> createPolicyBasedRouteCallable()
Overrides
createPolicyBasedRouteOperationCallable()
public OperationCallable<CreatePolicyBasedRouteRequest,PolicyBasedRoute,OperationMetadata> createPolicyBasedRouteOperationCallable()
Overrides
deletePolicyBasedRouteCallable()
public UnaryCallable<DeletePolicyBasedRouteRequest,Operation> deletePolicyBasedRouteCallable()
Overrides
deletePolicyBasedRouteOperationCallable()
public OperationCallable<DeletePolicyBasedRouteRequest,Empty,OperationMetadata> deletePolicyBasedRouteOperationCallable()
Overrides
getOperationsStub()
public GrpcOperationsStub getOperationsStub()
Overrides
getPolicyBasedRouteCallable()
public UnaryCallable<GetPolicyBasedRouteRequest,PolicyBasedRoute> getPolicyBasedRouteCallable()
Overrides
isShutdown()
public boolean isShutdown()
isTerminated()
public boolean isTerminated()
listPolicyBasedRoutesCallable()
public UnaryCallable<ListPolicyBasedRoutesRequest,ListPolicyBasedRoutesResponse> listPolicyBasedRoutesCallable()
Overrides
listPolicyBasedRoutesPagedCallable()
public UnaryCallable<ListPolicyBasedRoutesRequest,PolicyBasedRoutingServiceClient.ListPolicyBasedRoutesPagedResponse> listPolicyBasedRoutesPagedCallable()
Overrides
shutdown()
shutdownNow()
public void shutdownNow()