Class SubscriberServiceGrpc.SubscriberServiceStub (1.13.7)

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.SubscriberServiceStub

Methods

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
Overrides
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>