Package io.grpc.testing.integration
Class TestServiceGrpc.TestServiceBlockingStub
- java.lang.Object
-
- io.grpc.stub.AbstractStub<S>
-
- io.grpc.stub.AbstractBlockingStub<TestServiceGrpc.TestServiceBlockingStub>
-
- io.grpc.testing.integration.TestServiceGrpc.TestServiceBlockingStub
-
- Enclosing class:
- TestServiceGrpc
public static final class TestServiceGrpc.TestServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub<TestServiceGrpc.TestServiceBlockingStub>
A stub to allow clients to do synchronous 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.TestServiceBlockingStubbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions)Messages.SimpleResponsecacheableUnaryCall(Messages.SimpleRequest request)One request followed by one response.EmptyProtos.EmptyemptyCall(EmptyProtos.Empty request)One empty request followed by one empty response.java.util.Iterator<Messages.StreamingOutputCallResponse>streamingOutputCall(Messages.StreamingOutputCallRequest request)One request followed by a sequence of responses (streamed download).Messages.SimpleResponseunaryCall(Messages.SimpleRequest request)One request followed by one response.EmptyProtos.EmptyunimplementedCall(EmptyProtos.Empty request)The test server will not implement this method.
-
-
-
Method Detail
-
build
protected TestServiceGrpc.TestServiceBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
- Specified by:
buildin classio.grpc.stub.AbstractStub<TestServiceGrpc.TestServiceBlockingStub>
-
emptyCall
public EmptyProtos.Empty emptyCall(EmptyProtos.Empty request)
One empty request followed by one empty response.
-
unaryCall
public Messages.SimpleResponse unaryCall(Messages.SimpleRequest request)
One request followed by one response.
-
cacheableUnaryCall
public 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.
-
streamingOutputCall
public java.util.Iterator<Messages.StreamingOutputCallResponse> streamingOutputCall(Messages.StreamingOutputCallRequest request)
One request followed by a sequence of responses (streamed download). The server returns the payload with client desired type and sizes.
-
unimplementedCall
public 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.
-
-