Class PublisherServiceGrpc.PublisherServiceBlockingV2Stub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractBlockingStub<PublisherServiceGrpc.PublisherServiceBlockingV2Stub>
com.google.cloud.pubsublite.proto.PublisherServiceGrpc.PublisherServiceBlockingV2Stub
- Enclosing class:
- PublisherServiceGrpc
public static final class PublisherServiceGrpc.PublisherServiceBlockingV2Stub
extends io.grpc.stub.AbstractBlockingStub<PublisherServiceGrpc.PublisherServiceBlockingV2Stub>
A stub to allow clients to do synchronous rpc calls to service PublisherService.
The service that a publisher client application uses to publish messages to topics. Published messages are retained by the service for the duration of the retention period configured for the respective topic, and are delivered to subscriber clients upon request (via the `SubscriberService`).
-
Nested Class Summary
Nested classes/interfaces inherited from class io.grpc.stub.AbstractStub
io.grpc.stub.AbstractStub.StubFactory<T extends io.grpc.stub.AbstractStub<T>> -
Method Summary
Modifier and TypeMethodDescriptionbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions) io.grpc.stub.BlockingClientCall<PublishRequest,PublishResponse> publish()Establishes a stream with the server for publishing messages.Methods inherited from class io.grpc.stub.AbstractBlockingStub
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
protected PublisherServiceGrpc.PublisherServiceBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<PublisherServiceGrpc.PublisherServiceBlockingV2Stub>
-
publish
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/10918") public io.grpc.stub.BlockingClientCall<PublishRequest,PublishResponse> publish()Establishes a stream with the server for publishing messages. Once the stream is initialized, the client publishes messages by sending publish requests on the stream. The server responds with a PublishResponse for each PublishRequest sent by the client, in the same order that the requests were sent. Note that multiple PublishRequests can be in flight simultaneously, but they will be processed by the server in the order that they are sent by the client on a given stream.
-