Package io.grpc.testing.integration
Class TestServiceGrpc.TestServiceFutureStub
- java.lang.Object
-
- io.grpc.stub.AbstractStub<S>
-
- io.grpc.stub.AbstractFutureStub<TestServiceGrpc.TestServiceFutureStub>
-
- io.grpc.testing.integration.TestServiceGrpc.TestServiceFutureStub
-
- Enclosing class:
- TestServiceGrpc
public static final class TestServiceGrpc.TestServiceFutureStub extends io.grpc.stub.AbstractFutureStub<TestServiceGrpc.TestServiceFutureStub>
A stub to allow clients to do ListenableFuture-style rpc calls to service TestService.A simple service to test the various types of RPCs and experiment with performance with various types of payload.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected TestServiceGrpc.TestServiceFutureStubbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions)com.google.common.util.concurrent.ListenableFuture<Messages.SimpleResponse>cacheableUnaryCall(Messages.SimpleRequest request)One request followed by one response.com.google.common.util.concurrent.ListenableFuture<EmptyProtos.Empty>emptyCall(EmptyProtos.Empty request)One empty request followed by one empty response.com.google.common.util.concurrent.ListenableFuture<Messages.SimpleResponse>unaryCall(Messages.SimpleRequest request)One request followed by one response.com.google.common.util.concurrent.ListenableFuture<EmptyProtos.Empty>unimplementedCall(EmptyProtos.Empty request)The test server will not implement this method.
-
-
-
Method Detail
-
build
protected TestServiceGrpc.TestServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
- Specified by:
buildin classio.grpc.stub.AbstractStub<TestServiceGrpc.TestServiceFutureStub>
-
emptyCall
public com.google.common.util.concurrent.ListenableFuture<EmptyProtos.Empty> emptyCall(EmptyProtos.Empty request)
One empty request followed by one empty response.
-
unaryCall
public com.google.common.util.concurrent.ListenableFuture<Messages.SimpleResponse> unaryCall(Messages.SimpleRequest request)
One request followed by one response.
-
cacheableUnaryCall
public com.google.common.util.concurrent.ListenableFuture<Messages.SimpleResponse> cacheableUnaryCall(Messages.SimpleRequest request)
One request followed by one response. Response has cache control headers set such that a caching HTTP proxy (such as GFE) can satisfy subsequent requests.
-
unimplementedCall
public com.google.common.util.concurrent.ListenableFuture<EmptyProtos.Empty> unimplementedCall(EmptyProtos.Empty request)
The test server will not implement this method. It will be used to test the behavior when clients call unimplemented methods.
-
-