@ExperimentalApi(value="https://github.com/grpc/grpc-java/issues/1469") public abstract static class ServiceControllerGrpc.ServiceControllerImplBase extends java.lang.Object implements ServiceControllerGrpc.ServiceController, io.grpc.BindableService
| Constructor and Description |
|---|
ServiceControllerImplBase() |
| Modifier and Type | Method and Description |
|---|---|
io.grpc.ServerServiceDefinition |
bindService() |
void |
check(CheckRequest request,
io.grpc.stub.StreamObserver<CheckResponse> responseObserver)
Checks an operation with Google Service Control to decide whether
the given operation should proceed.
|
void |
report(ReportRequest request,
io.grpc.stub.StreamObserver<ReportResponse> responseObserver)
Reports operations to Google Service Control.
|
public void check(CheckRequest request, io.grpc.stub.StreamObserver<CheckResponse> responseObserver)
ServiceControllerGrpc.ServiceControllerChecks an operation with Google Service Control to decide whether the given operation should proceed. It should be called before the operation is executed. If feasible, the client should cache the check results and reuse them for up to 60s. In case of server errors, the client may rely on the cached results for longer time. This method requires the `servicemanagement.services.check` permission on the specified service. For more information, see [Google Cloud IAM](https://cloud.google.com/iam).
check in interface ServiceControllerGrpc.ServiceControllerpublic void report(ReportRequest request, io.grpc.stub.StreamObserver<ReportResponse> responseObserver)
ServiceControllerGrpc.ServiceControllerReports operations to Google Service Control. It should be called after the operation is completed. If feasible, the client should aggregate reporting data for up to 5s to reduce API traffic. Limiting aggregation to 5s is to reduce data loss during client crashes. Clients should carefully choose the aggregation window to avoid data loss risk more than 0.01% for business and compliance reasons. This method requires the `servicemanagement.services.report` permission on the specified service. For more information, see [Google Cloud IAM](https://cloud.google.com/iam).
report in interface ServiceControllerGrpc.ServiceControllerpublic io.grpc.ServerServiceDefinition bindService()
bindService in interface io.grpc.BindableService