Package io.grpc.benchmarks.qps
Class AsyncServer.BenchmarkServiceImpl
- java.lang.Object
-
- io.grpc.benchmarks.proto.BenchmarkServiceGrpc.BenchmarkServiceImplBase
-
- io.grpc.benchmarks.qps.AsyncServer.BenchmarkServiceImpl
-
- All Implemented Interfaces:
BenchmarkServiceGrpc.AsyncService,io.grpc.BindableService
- Enclosing class:
- AsyncServer
public static class AsyncServer.BenchmarkServiceImpl extends BenchmarkServiceGrpc.BenchmarkServiceImplBase
-
-
Constructor Summary
Constructors Constructor Description BenchmarkServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidshutdown()io.grpc.stub.StreamObserver<Messages.SimpleRequest>streamingBothWays(io.grpc.stub.StreamObserver<Messages.SimpleResponse> observer)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> observer)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> observer)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.-
Methods inherited from class io.grpc.benchmarks.proto.BenchmarkServiceGrpc.BenchmarkServiceImplBase
bindService
-
-
-
-
Method Detail
-
shutdown
public void shutdown()
-
unaryCall
public void unaryCall(Messages.SimpleRequest request, io.grpc.stub.StreamObserver<Messages.SimpleResponse> responseObserver)
Description copied from interface:BenchmarkServiceGrpc.AsyncServiceOne 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> observer)
Description copied from interface:BenchmarkServiceGrpc.AsyncServiceRepeated 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)
Description copied from interface:BenchmarkServiceGrpc.AsyncServiceSingle-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> observer)
Description copied from interface:BenchmarkServiceGrpc.AsyncServiceSingle-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> observer)
Description copied from interface:BenchmarkServiceGrpc.AsyncServiceTwo-sided unbounded streaming between server to client Both sides send the content of their own choice to the other
-
-