Class SimpleGrpc.SimpleStub
java.lang.Object
io.grpc.stub.AbstractStub<SimpleGrpc.SimpleStub>
io.grpc.stub.AbstractAsyncStub<SimpleGrpc.SimpleStub>
com.example.demo.proto.SimpleGrpc.SimpleStub
- Enclosing class:
SimpleGrpc
public static final class SimpleGrpc.SimpleStub
extends io.grpc.stub.AbstractAsyncStub<SimpleGrpc.SimpleStub>
A stub to allow clients to do asynchronous rpc calls to service Simple.
The greeting service definition.
-
Nested Class Summary
Nested classes/interfaces inherited from class io.grpc.stub.AbstractStub
io.grpc.stub.AbstractStub.StubFactory<T> -
Method Summary
Modifier and TypeMethodDescriptionprotected SimpleGrpc.SimpleStubbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions) voidsayHello(HelloRequest request, io.grpc.stub.StreamObserver<HelloReply> responseObserver) Sends a greetingvoidstreamHello(HelloRequest request, io.grpc.stub.StreamObserver<HelloReply> responseObserver) Methods inherited from class io.grpc.stub.AbstractAsyncStub
newStub, newStubMethods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady
-
Method Details
-
build
- Specified by:
buildin classio.grpc.stub.AbstractStub<SimpleGrpc.SimpleStub>
-
sayHello
public void sayHello(HelloRequest request, io.grpc.stub.StreamObserver<HelloReply> responseObserver) Sends a greeting
-
streamHello
public void streamHello(HelloRequest request, io.grpc.stub.StreamObserver<HelloReply> responseObserver)
-