Last active
July 16, 2019 00:52
-
-
Save karreiro/b83d859ce255637417ac05c55ce6901f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| static class GreeterImpl extends GreeterGrpc.GreeterImplBase { | |
| @Override | |
| public void sayHello(HelloRequest req, | |
| StreamObserver<HelloReply> responseObserver) { | |
| HelloReply reply = HelloReply.newBuilder().setMessage("Hello " + req.getName()).build(); | |
| responseObserver.onNext(reply); | |
| responseObserver.onCompleted(); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment