public static class AsyncServer.BenchmarkServiceImpl extends BenchmarkServiceGrpc.BenchmarkServiceImplBase
| Constructor and Description |
|---|
BenchmarkServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
shutdown() |
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 other
|
io.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 WritesDone
|
void |
streamingFromServer(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-is
|
void |
unaryCall(Messages.SimpleRequest request,
io.grpc.stub.StreamObserver<Messages.SimpleResponse> responseObserver)
One request followed by one response.
|
bindServicepublic void shutdown()
public void unaryCall(Messages.SimpleRequest request, io.grpc.stub.StreamObserver<Messages.SimpleResponse> responseObserver)
BenchmarkServiceGrpc.AsyncServiceOne request followed by one response. The server returns the client payload as-is.
public io.grpc.stub.StreamObserver<Messages.SimpleRequest> streamingCall(io.grpc.stub.StreamObserver<Messages.SimpleResponse> observer)
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
public io.grpc.stub.StreamObserver<Messages.SimpleRequest> streamingFromClient(io.grpc.stub.StreamObserver<Messages.SimpleResponse> responseObserver)
BenchmarkServiceGrpc.AsyncServiceSingle-sided unbounded streaming from client to server The server returns the client payload as-is once the client does WritesDone
public void streamingFromServer(Messages.SimpleRequest request, io.grpc.stub.StreamObserver<Messages.SimpleResponse> observer)
BenchmarkServiceGrpc.AsyncServiceSingle-sided unbounded streaming from server to client The server repeatedly returns the client payload as-is
public io.grpc.stub.StreamObserver<Messages.SimpleRequest> streamingBothWays(io.grpc.stub.StreamObserver<Messages.SimpleResponse> observer)
BenchmarkServiceGrpc.AsyncServiceTwo-sided unbounded streaming between server to client Both sides send the content of their own choice to the other