public static final class MixerGrpc.MixerStub extends io.grpc.stub.AbstractStub<MixerGrpc.MixerStub>
Mixer provides three core features: - *Precondition Checking*. Enables callers to verify a number of preconditions before responding to an incoming request from a service consumer. Preconditions can include whether the service consumer is properly authenticated, is on the service’s whitelist, passes ACL checks, and more. - *Quota Management*. Enables services to allocate and free quota on a number of dimensions, Quotas are used as a relatively simple resource management tool to provide some fairness between service consumers when contending for limited resources. Rate limits are examples of quotas. - *Telemetry Reporting*. Enables services to report logging and monitoring. In the future, it will also enable tracing and billing streams intended for both the service operator as well as for service consumers.
| Modifier and Type | Method and Description |
|---|---|
protected MixerGrpc.MixerStub |
build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) |
void |
check(Check.CheckRequest request,
io.grpc.stub.StreamObserver<Check.CheckResponse> responseObserver)
Checks preconditions and allocate quota before performing an operation.
|
void |
report(Report.ReportRequest request,
io.grpc.stub.StreamObserver<Report.ReportResponse> responseObserver)
Reports telemetry, such as logs and metrics.
|
protected MixerGrpc.MixerStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
build in class io.grpc.stub.AbstractStub<MixerGrpc.MixerStub>public void check(Check.CheckRequest request, io.grpc.stub.StreamObserver<Check.CheckResponse> responseObserver)
Checks preconditions and allocate quota before performing an operation. The preconditions enforced depend on the set of supplied attributes and the active configuration.
public void report(Report.ReportRequest request, io.grpc.stub.StreamObserver<Report.ReportResponse> responseObserver)
Reports telemetry, such as logs and metrics. The reported information depends on the set of supplied attributes and the active configuration.
Copyright © 2019 WSO2. All rights reserved.