Package io.grpc.testing.integration
Interface TestServiceGrpc.AsyncService
-
- All Known Implementing Classes:
TestServiceGrpc.TestServiceImplBase,TestServiceImpl
- Enclosing class:
- TestServiceGrpc
public static interface TestServiceGrpc.AsyncServiceA simple service to test the various types of RPCs and experiment with performance with various types of payload.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default voidcacheableUnaryCall(Messages.SimpleRequest request, io.grpc.stub.StreamObserver<Messages.SimpleResponse> responseObserver)One request followed by one response.default voidemptyCall(EmptyProtos.Empty request, io.grpc.stub.StreamObserver<EmptyProtos.Empty> responseObserver)One empty request followed by one empty response.default io.grpc.stub.StreamObserver<Messages.StreamingOutputCallRequest>fullDuplexCall(io.grpc.stub.StreamObserver<Messages.StreamingOutputCallResponse> responseObserver)A sequence of requests with each request served by the server immediately.default io.grpc.stub.StreamObserver<Messages.StreamingOutputCallRequest>halfDuplexCall(io.grpc.stub.StreamObserver<Messages.StreamingOutputCallResponse> responseObserver)A sequence of requests followed by a sequence of responses.default io.grpc.stub.StreamObserver<Messages.StreamingInputCallRequest>streamingInputCall(io.grpc.stub.StreamObserver<Messages.StreamingInputCallResponse> responseObserver)A sequence of requests followed by one response (streamed upload).default voidstreamingOutputCall(Messages.StreamingOutputCallRequest request, io.grpc.stub.StreamObserver<Messages.StreamingOutputCallResponse> responseObserver)One request followed by a sequence of responses (streamed download).default voidunaryCall(Messages.SimpleRequest request, io.grpc.stub.StreamObserver<Messages.SimpleResponse> responseObserver)One request followed by one response.default voidunimplementedCall(EmptyProtos.Empty request, io.grpc.stub.StreamObserver<EmptyProtos.Empty> responseObserver)The test server will not implement this method.
-
-
-
Method Detail
-
emptyCall
default void emptyCall(EmptyProtos.Empty request, io.grpc.stub.StreamObserver<EmptyProtos.Empty> responseObserver)
One empty request followed by one empty response.
-
unaryCall
default void unaryCall(Messages.SimpleRequest request, io.grpc.stub.StreamObserver<Messages.SimpleResponse> responseObserver)
One request followed by one response.
-
cacheableUnaryCall
default void cacheableUnaryCall(Messages.SimpleRequest request, io.grpc.stub.StreamObserver<Messages.SimpleResponse> responseObserver)
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
default void streamingOutputCall(Messages.StreamingOutputCallRequest request, io.grpc.stub.StreamObserver<Messages.StreamingOutputCallResponse> responseObserver)
One request followed by a sequence of responses (streamed download). The server returns the payload with client desired type and sizes.
-
streamingInputCall
default io.grpc.stub.StreamObserver<Messages.StreamingInputCallRequest> streamingInputCall(io.grpc.stub.StreamObserver<Messages.StreamingInputCallResponse> responseObserver)
A sequence of requests followed by one response (streamed upload). The server returns the aggregated size of client payload as the result.
-
fullDuplexCall
default io.grpc.stub.StreamObserver<Messages.StreamingOutputCallRequest> fullDuplexCall(io.grpc.stub.StreamObserver<Messages.StreamingOutputCallResponse> responseObserver)
A sequence of requests with each request served by the server immediately. As one request could lead to multiple responses, this interface demonstrates the idea of full duplexing.
-
halfDuplexCall
default io.grpc.stub.StreamObserver<Messages.StreamingOutputCallRequest> halfDuplexCall(io.grpc.stub.StreamObserver<Messages.StreamingOutputCallResponse> responseObserver)
A sequence of requests followed by a sequence of responses. The server buffers all the client requests and then serves them in order. A stream of responses are returned to the client when the server starts with first request.
-
unimplementedCall
default void unimplementedCall(EmptyProtos.Empty request, io.grpc.stub.StreamObserver<EmptyProtos.Empty> responseObserver)
The test server will not implement this method. It will be used to test the behavior when clients call unimplemented methods.
-
-