public static final class PublisherGrpc.PublisherStub extends AbstractAsyncStub<PublisherGrpc.PublisherStub>
The service that an application uses to manipulate topics, and to send
messages to a topic.
Inheritance
java.lang.Object >
io.grpc.stub.AbstractStub >
io.grpc.stub.AbstractAsyncStub >
PublisherGrpc.PublisherStub
Inherited Members
io.grpc.stub.AbstractAsyncStub.<T>newStub(io.grpc.stub.AbstractStub.StubFactory<T>,io.grpc.Channel)
io.grpc.stub.AbstractAsyncStub.<T>newStub(io.grpc.stub.AbstractStub.StubFactory<T>,io.grpc.Channel,io.grpc.CallOptions)
io.grpc.stub.AbstractStub.<T>withOption(io.grpc.CallOptions.Key<T>,T)
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)
io.grpc.stub.AbstractStub.getCallOptions()
io.grpc.stub.AbstractStub.getChannel()
io.grpc.stub.AbstractStub.withCallCredentials(io.grpc.CallCredentials)
io.grpc.stub.AbstractStub.withChannel(io.grpc.Channel)
io.grpc.stub.AbstractStub.withCompression(java.lang.String)
io.grpc.stub.AbstractStub.withDeadline(io.grpc.Deadline)
io.grpc.stub.AbstractStub.withDeadlineAfter(long,java.util.concurrent.TimeUnit)
io.grpc.stub.AbstractStub.withExecutor(java.util.concurrent.Executor)
io.grpc.stub.AbstractStub.withInterceptors(io.grpc.ClientInterceptor...)
io.grpc.stub.AbstractStub.withMaxInboundMessageSize(int)
io.grpc.stub.AbstractStub.withMaxOutboundMessageSize(int)
io.grpc.stub.AbstractStub.withWaitForReady()
Methods
build(Channel channel, CallOptions callOptions)
protected PublisherGrpc.PublisherStub build(Channel channel, CallOptions callOptions)
Parameters |
---|
Name | Description |
channel | io.grpc.Channel
|
callOptions | io.grpc.CallOptions
|
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)
createTopic(Topic request, StreamObserver<Topic> responseObserver)
public void createTopic(Topic request, StreamObserver<Topic> responseObserver)
Parameters |
---|
Name | Description |
request | Topic
|
responseObserver | io.grpc.stub.StreamObserver<Topic>
|
deleteTopic(DeleteTopicRequest request, StreamObserver<Empty> responseObserver)
public void deleteTopic(DeleteTopicRequest request, StreamObserver<Empty> responseObserver)
Deletes the topic with the given name. Returns NOT_FOUND
if the topic
does not exist. After a topic is deleted, a new topic may be created with
the same name; this is an entirely new topic with none of the old
configuration or subscriptions. Existing subscriptions to this topic are
not deleted, but their topic
field is set to deleted-topic
.
detachSubscription(DetachSubscriptionRequest request, StreamObserver<DetachSubscriptionResponse> responseObserver)
public void detachSubscription(DetachSubscriptionRequest request, StreamObserver<DetachSubscriptionResponse> responseObserver)
Detaches a subscription from this topic. All messages retained in the
subscription are dropped. Subsequent Pull
and StreamingPull
requests
will return FAILED_PRECONDITION. If the subscription is a push
subscription, pushes to the endpoint will stop.
getTopic(GetTopicRequest request, StreamObserver<Topic> responseObserver)
public void getTopic(GetTopicRequest request, StreamObserver<Topic> responseObserver)
Gets the configuration of a topic.
listTopicSnapshots(ListTopicSnapshotsRequest request, StreamObserver<ListTopicSnapshotsResponse> responseObserver)
public void listTopicSnapshots(ListTopicSnapshotsRequest request, StreamObserver<ListTopicSnapshotsResponse> responseObserver)
Lists the names of the snapshots on this topic. Snapshots are used in
Seek operations,
which allow you to manage message acknowledgments in bulk. That is, you can
set the acknowledgment state of messages in an existing subscription to the
state captured by a snapshot.
listTopicSubscriptions(ListTopicSubscriptionsRequest request, StreamObserver<ListTopicSubscriptionsResponse> responseObserver)
public void listTopicSubscriptions(ListTopicSubscriptionsRequest request, StreamObserver<ListTopicSubscriptionsResponse> responseObserver)
Lists the names of the attached subscriptions on this topic.
listTopics(ListTopicsRequest request, StreamObserver<ListTopicsResponse> responseObserver)
public void listTopics(ListTopicsRequest request, StreamObserver<ListTopicsResponse> responseObserver)
publish(PublishRequest request, StreamObserver<PublishResponse> responseObserver)
public void publish(PublishRequest request, StreamObserver<PublishResponse> responseObserver)
Adds one or more messages to the topic. Returns NOT_FOUND
if the topic
does not exist.
updateTopic(UpdateTopicRequest request, StreamObserver<Topic> responseObserver)
public void updateTopic(UpdateTopicRequest request, StreamObserver<Topic> responseObserver)
Updates an existing topic. Note that certain properties of a
topic are not modifiable.