public static final class SubscriberServiceGrpc.SubscriberServiceStub extends AbstractAsyncStub<SubscriberServiceGrpc.SubscriberServiceStub>
A stub to allow clients to do asynchronous rpc calls to service SubscriberService.
The service that a subscriber client application uses to receive messages from subscriptions.
Inheritance
java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractAsyncStub > SubscriberServiceGrpc.SubscriberServiceStubMethods
build(Channel channel, CallOptions callOptions)
protected SubscriberServiceGrpc.SubscriberServiceStub build(Channel channel, CallOptions callOptions)
Parameters | |
---|---|
Name | Description |
channel |
io.grpc.Channel |
callOptions |
io.grpc.CallOptions |
Returns | |
---|---|
Type | Description |
SubscriberServiceGrpc.SubscriberServiceStub |
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)
subscribe(StreamObserver<SubscribeResponse> responseObserver)
public StreamObserver<SubscribeRequest> subscribe(StreamObserver<SubscribeResponse> responseObserver)
Establishes a stream with the server for receiving messages.
Parameter | |
---|---|
Name | Description |
responseObserver |
io.grpc.stub.StreamObserver<SubscribeResponse> |
Returns | |
---|---|
Type | Description |
io.grpc.stub.StreamObserver<SubscribeRequest> |