Skip to content
Snippets Groups Projects
Commit 04837cef authored by nmittler's avatar nmittler Committed by Tim Emiola
Browse files

Updating Java code in README.md

parent a320bc54
No related branches found
No related tags found
No related merge requests found
...@@ -223,19 +223,16 @@ has all the protocol buffer code to populate, serialize, and retrieve our ...@@ -223,19 +223,16 @@ has all the protocol buffer code to populate, serialize, and retrieve our
```java ```java
public static interface Greeter { public static interface Greeter {
public void sayHello(io.grpc.examples.Helloworld.HelloRequest request,
public void SayHello(ex.grpc.Helloworld.HelloRequest request, io.grpc.stub.StreamObserver<io.grpc.examples.Helloworld.HelloReply> responseObserver);
com.google.net.stubby.stub.StreamObserver<ex.grpc.Helloworld.HelloReply>
responseObserver);
} }
``` ```
- _stub_ classes that clients can use to talk to a `Greeter` server. As you can see, they also implement the `Greeter` interface. - _stub_ classes that clients can use to talk to a `Greeter` server. As you can see, they also implement the `Greeter` interface.
```java ```java
public static class GreeterStub extends public static class GreeterStub extends
com.google.net.stubby.stub.AbstractStub<GreeterStub, io.grpc.stub.AbstractStub<GreeterStub, GreeterServiceDescriptor>
GreeterServiceDescriptor>
implements Greeter { implements Greeter {
... ...
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment