Package io.grpc.benchmarks.proto
Class BenchmarkServiceGrpc.BenchmarkServiceStub
- java.lang.Object
-
- io.grpc.stub.AbstractStub<S>
-
- io.grpc.stub.AbstractAsyncStub<BenchmarkServiceGrpc.BenchmarkServiceStub>
-
- io.grpc.benchmarks.proto.BenchmarkServiceGrpc.BenchmarkServiceStub
-
- Enclosing class:
- BenchmarkServiceGrpc
public static final class BenchmarkServiceGrpc.BenchmarkServiceStub extends io.grpc.stub.AbstractAsyncStub<BenchmarkServiceGrpc.BenchmarkServiceStub>
A stub to allow clients to do asynchronous rpc calls to service BenchmarkService.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected BenchmarkServiceGrpc.BenchmarkServiceStubbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions)io.grpc.stub.StreamObserver<Messages.SimpleRequest>streamingBothWays(io.grpc.stub.StreamObserver<Messages.SimpleResponse> responseObserver)Two-sided unbounded streaming between server to client Both sides send the content of their own choice to the otherio.grpc.stub.StreamObserver<Messages.SimpleRequest>streamingCall(io.grpc.stub.StreamObserver<Messages.SimpleResponse> responseObserver)Repeated sequence of one request followed by one response.io.grpc.stub.StreamObserver<Messages.SimpleRequest>streamingFromClient(io.grpc.stub.StreamObserver<Messages.SimpleResponse> responseObserver)Single-sided unbounded streaming from client to server The server returns the client payload as-is once the client does WritesDonevoidstreamingFromServer(Messages.SimpleRequest request, io.grpc.stub.StreamObserver<Messages.SimpleResponse> responseObserver)Single-sided unbounded streaming from server to client The server repeatedly returns the client payload as-isvoidunaryCall(Messages.SimpleRequest request, io.grpc.stub.StreamObserver<Messages.SimpleResponse> responseObserver)One request followed by one response.
-
-
-
Method Detail
-
build
protected BenchmarkServiceGrpc.BenchmarkServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
- Specified by:
buildin classio.grpc.stub.AbstractStub<BenchmarkServiceGrpc.BenchmarkServiceStub>
-
unaryCall
public void unaryCall(Messages.SimpleRequest request, io.grpc.stub.StreamObserver<Messages.SimpleResponse> responseObserver)
One request followed by one response. The server returns the client payload as-is.
-
streamingCall
public io.grpc.stub.StreamObserver<Messages.SimpleRequest> streamingCall(io.grpc.stub.StreamObserver<Messages.SimpleResponse> responseObserver)
Repeated sequence of one request followed by one response. Should be called streaming ping-pong The server returns the client payload as-is on each response
-
streamingFromClient
public io.grpc.stub.StreamObserver<Messages.SimpleRequest> streamingFromClient(io.grpc.stub.StreamObserver<Messages.SimpleResponse> responseObserver)
Single-sided unbounded streaming from client to server The server returns the client payload as-is once the client does WritesDone
-
streamingFromServer
public void streamingFromServer(Messages.SimpleRequest request, io.grpc.stub.StreamObserver<Messages.SimpleResponse> responseObserver)
Single-sided unbounded streaming from server to client The server repeatedly returns the client payload as-is
-
streamingBothWays
public io.grpc.stub.StreamObserver<Messages.SimpleRequest> streamingBothWays(io.grpc.stub.StreamObserver<Messages.SimpleResponse> responseObserver)
Two-sided unbounded streaming between server to client Both sides send the content of their own choice to the other
-
-