public static final class TestServiceGrpc.TestServiceFutureStub extends io.grpc.stub.AbstractFutureStub<TestServiceGrpc.TestServiceFutureStub>
A simple service to test the various types of RPCs and experiment with performance with various types of payload.
| Modifier and Type | Method and Description |
|---|---|
protected TestServiceGrpc.TestServiceFutureStub |
build(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.
|
protected TestServiceGrpc.TestServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
build in class io.grpc.stub.AbstractStub<TestServiceGrpc.TestServiceFutureStub>public com.google.common.util.concurrent.ListenableFuture<EmptyProtos.Empty> emptyCall(EmptyProtos.Empty request)
One empty request followed by one empty response.
public com.google.common.util.concurrent.ListenableFuture<Messages.SimpleResponse> unaryCall(Messages.SimpleRequest request)
One request followed by one response.
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.
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.