Class SubscriberServiceGrpc.SubscriberServiceStub (1.12.22)

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
NameDescription
channelio.grpc.Channel
callOptionsio.grpc.CallOptions
Returns
TypeDescription
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
NameDescription
responseObserverio.grpc.stub.StreamObserver<SubscribeResponse>
Returns
TypeDescription
io.grpc.stub.StreamObserver<SubscribeRequest>