Class AdminServiceGrpc.AdminServiceFutureStub
- java.lang.Object
-
- io.grpc.stub.AbstractStub<S>
-
- io.grpc.stub.AbstractFutureStub<AdminServiceGrpc.AdminServiceFutureStub>
-
- com.google.cloud.pubsublite.proto.AdminServiceGrpc.AdminServiceFutureStub
-
- Enclosing class:
- AdminServiceGrpc
public static final class AdminServiceGrpc.AdminServiceFutureStub extends io.grpc.stub.AbstractFutureStub<AdminServiceGrpc.AdminServiceFutureStub>
A stub to allow clients to do ListenableFuture-style rpc calls to service AdminService.The service that a client application uses to manage topics and subscriptions, such creating, listing, and deleting topics and subscriptions.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AdminServiceGrpc.AdminServiceFutureStub
build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
com.google.common.util.concurrent.ListenableFuture<Reservation>
createReservation(CreateReservationRequest request)
Creates a new reservation.com.google.common.util.concurrent.ListenableFuture<Subscription>
createSubscription(CreateSubscriptionRequest request)
Creates a new subscription.com.google.common.util.concurrent.ListenableFuture<Topic>
createTopic(CreateTopicRequest request)
Creates a new topic.com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty>
deleteReservation(DeleteReservationRequest request)
Deletes the specified reservation.com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty>
deleteSubscription(DeleteSubscriptionRequest request)
Deletes the specified subscription.com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty>
deleteTopic(DeleteTopicRequest request)
Deletes the specified topic.com.google.common.util.concurrent.ListenableFuture<Reservation>
getReservation(GetReservationRequest request)
Returns the reservation configuration.com.google.common.util.concurrent.ListenableFuture<Subscription>
getSubscription(GetSubscriptionRequest request)
Returns the subscription configuration.com.google.common.util.concurrent.ListenableFuture<Topic>
getTopic(GetTopicRequest request)
Returns the topic configuration.com.google.common.util.concurrent.ListenableFuture<TopicPartitions>
getTopicPartitions(GetTopicPartitionsRequest request)
Returns the partition information for the requested topic.com.google.common.util.concurrent.ListenableFuture<ListReservationsResponse>
listReservations(ListReservationsRequest request)
Returns the list of reservations for the given project.com.google.common.util.concurrent.ListenableFuture<ListReservationTopicsResponse>
listReservationTopics(ListReservationTopicsRequest request)
Lists the topics attached to the specified reservation.com.google.common.util.concurrent.ListenableFuture<ListSubscriptionsResponse>
listSubscriptions(ListSubscriptionsRequest request)
Returns the list of subscriptions for the given project.com.google.common.util.concurrent.ListenableFuture<ListTopicsResponse>
listTopics(ListTopicsRequest request)
Returns the list of topics for the given project.com.google.common.util.concurrent.ListenableFuture<ListTopicSubscriptionsResponse>
listTopicSubscriptions(ListTopicSubscriptionsRequest request)
Lists the subscriptions attached to the specified topic.com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation>
seekSubscription(SeekSubscriptionRequest request)
Performs an out-of-band seek for a subscription to a specified target, which may be timestamps or named positions within the message backlog.com.google.common.util.concurrent.ListenableFuture<Reservation>
updateReservation(UpdateReservationRequest request)
Updates properties of the specified reservation.com.google.common.util.concurrent.ListenableFuture<Subscription>
updateSubscription(UpdateSubscriptionRequest request)
Updates properties of the specified subscription.com.google.common.util.concurrent.ListenableFuture<Topic>
updateTopic(UpdateTopicRequest request)
Updates properties of the specified topic.
-
-
-
Method Detail
-
build
protected AdminServiceGrpc.AdminServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
- Specified by:
build
in classio.grpc.stub.AbstractStub<AdminServiceGrpc.AdminServiceFutureStub>
-
createTopic
public com.google.common.util.concurrent.ListenableFuture<Topic> createTopic(CreateTopicRequest request)
Creates a new topic.
-
getTopic
public com.google.common.util.concurrent.ListenableFuture<Topic> getTopic(GetTopicRequest request)
Returns the topic configuration.
-
getTopicPartitions
public com.google.common.util.concurrent.ListenableFuture<TopicPartitions> getTopicPartitions(GetTopicPartitionsRequest request)
Returns the partition information for the requested topic.
-
listTopics
public com.google.common.util.concurrent.ListenableFuture<ListTopicsResponse> listTopics(ListTopicsRequest request)
Returns the list of topics for the given project.
-
updateTopic
public com.google.common.util.concurrent.ListenableFuture<Topic> updateTopic(UpdateTopicRequest request)
Updates properties of the specified topic.
-
deleteTopic
public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> deleteTopic(DeleteTopicRequest request)
Deletes the specified topic.
-
listTopicSubscriptions
public com.google.common.util.concurrent.ListenableFuture<ListTopicSubscriptionsResponse> listTopicSubscriptions(ListTopicSubscriptionsRequest request)
Lists the subscriptions attached to the specified topic.
-
createSubscription
public com.google.common.util.concurrent.ListenableFuture<Subscription> createSubscription(CreateSubscriptionRequest request)
Creates a new subscription.
-
getSubscription
public com.google.common.util.concurrent.ListenableFuture<Subscription> getSubscription(GetSubscriptionRequest request)
Returns the subscription configuration.
-
listSubscriptions
public com.google.common.util.concurrent.ListenableFuture<ListSubscriptionsResponse> listSubscriptions(ListSubscriptionsRequest request)
Returns the list of subscriptions for the given project.
-
updateSubscription
public com.google.common.util.concurrent.ListenableFuture<Subscription> updateSubscription(UpdateSubscriptionRequest request)
Updates properties of the specified subscription.
-
deleteSubscription
public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> deleteSubscription(DeleteSubscriptionRequest request)
Deletes the specified subscription.
-
seekSubscription
public com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation> seekSubscription(SeekSubscriptionRequest request)
Performs an out-of-band seek for a subscription to a specified target, which may be timestamps or named positions within the message backlog. Seek translates these targets to cursors for each partition and orchestrates subscribers to start consuming messages from these seek cursors. If an operation is returned, the seek has been registered and subscribers will eventually receive messages from the seek cursors (i.e. eventual consistency), as long as they are using a minimum supported client library version and not a system that tracks cursors independently of Pub/Sub Lite (e.g. Apache Beam, Dataflow, Spark). The seek operation will fail for unsupported clients. If clients would like to know when subscribers react to the seek (or not), they can poll the operation. The seek operation will succeed and complete once subscribers are ready to receive messages from the seek cursors for all partitions of the topic. This means that the seek operation will not complete until all subscribers come online. If the previous seek operation has not yet completed, it will be aborted and the new invocation of seek will supersede it.
-
createReservation
public com.google.common.util.concurrent.ListenableFuture<Reservation> createReservation(CreateReservationRequest request)
Creates a new reservation.
-
getReservation
public com.google.common.util.concurrent.ListenableFuture<Reservation> getReservation(GetReservationRequest request)
Returns the reservation configuration.
-
listReservations
public com.google.common.util.concurrent.ListenableFuture<ListReservationsResponse> listReservations(ListReservationsRequest request)
Returns the list of reservations for the given project.
-
updateReservation
public com.google.common.util.concurrent.ListenableFuture<Reservation> updateReservation(UpdateReservationRequest request)
Updates properties of the specified reservation.
-
deleteReservation
public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> deleteReservation(DeleteReservationRequest request)
Deletes the specified reservation.
-
listReservationTopics
public com.google.common.util.concurrent.ListenableFuture<ListReservationTopicsResponse> listReservationTopics(ListReservationTopicsRequest request)
Lists the topics attached to the specified reservation.
-
-