Class RateLimitServiceGrpc.RateLimitServiceFutureStub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractFutureStub<RateLimitServiceGrpc.RateLimitServiceFutureStub>
io.envoyproxy.envoy.service.ratelimit.v2.RateLimitServiceGrpc.RateLimitServiceFutureStub
- Enclosing class:
- RateLimitServiceGrpc
public static final class RateLimitServiceGrpc.RateLimitServiceFutureStub
extends io.grpc.stub.AbstractFutureStub<RateLimitServiceGrpc.RateLimitServiceFutureStub>
A stub to allow clients to do ListenableFuture-style rpc calls to service RateLimitService.
-
Nested Class Summary
Nested classes/interfaces inherited from class io.grpc.stub.AbstractStub
io.grpc.stub.AbstractStub.StubFactory<T extends io.grpc.stub.AbstractStub<T>> -
Method Summary
Modifier and TypeMethodDescriptionbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions) com.google.common.util.concurrent.ListenableFuture<RateLimitResponse>shouldRateLimit(RateLimitRequest request) Determine whether rate limiting should take place.Methods inherited from class io.grpc.stub.AbstractFutureStub
newStub, newStubMethods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOption, withWaitForReady
-
Method Details
-
build
protected RateLimitServiceGrpc.RateLimitServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<RateLimitServiceGrpc.RateLimitServiceFutureStub>
-
shouldRateLimit
public com.google.common.util.concurrent.ListenableFuture<RateLimitResponse> shouldRateLimit(RateLimitRequest request) Determine whether rate limiting should take place.
-