public class AdminClientImpl extends com.google.api.gax.core.BackgroundResourceAggregation implements AdminClient
| Constructor and Description |
|---|
AdminClientImpl(CloudRegion region,
AdminServiceGrpc.AdminServiceBlockingStub stub,
com.google.api.gax.retrying.RetrySettings retrySettings) |
| Modifier and Type | Method and Description |
|---|---|
com.google.api.core.ApiFuture<Subscription> |
createSubscription(Subscription subscription)
Create the provided subscription if it does not yet exist.
|
com.google.api.core.ApiFuture<Topic> |
createTopic(Topic topic)
Create the provided topic if it does not yet exist.
|
com.google.api.core.ApiFuture<Void> |
deleteSubscription(SubscriptionPath path)
Delete the subscription with id
id if it exists. |
com.google.api.core.ApiFuture<Void> |
deleteTopic(TopicPath path)
Delete the topic with id
id if it exists. |
com.google.api.core.ApiFuture<Subscription> |
getSubscription(SubscriptionPath path)
Get the subscription with id
id if it exists. |
com.google.api.core.ApiFuture<Topic> |
getTopic(TopicPath path)
Get the topic with id
id if it exists. |
com.google.api.core.ApiFuture<Long> |
getTopicPartitionCount(TopicPath path)
Get the partitioning info for the topic with id
id if it exists. |
com.google.api.core.ApiFuture<List<Subscription>> |
listSubscriptions(LocationPath path)
List all subscriptions for the specified project.
|
com.google.api.core.ApiFuture<List<Topic>> |
listTopics(LocationPath path)
List all topics for the specified project.
|
com.google.api.core.ApiFuture<List<SubscriptionPath>> |
listTopicSubscriptions(TopicPath path)
Get the list of subscriptions for the topic with id
id if it exists. |
CloudRegion |
region()
The Google Cloud region this client operates on.
|
com.google.api.core.ApiFuture<Subscription> |
updateSubscription(Subscription subscription,
com.google.protobuf.FieldMask mask)
Update the subscription with path
subscription.getPath() if it exists. |
com.google.api.core.ApiFuture<Topic> |
updateTopic(Topic topic,
com.google.protobuf.FieldMask mask)
Update the topic with path
topic.getPath() if it exists. |
awaitTermination, close, isShutdown, isTerminated, shutdown, shutdownNowclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateawaitTermination, isShutdown, isTerminated, shutdown, shutdownNowclosepublic AdminClientImpl(CloudRegion region, AdminServiceGrpc.AdminServiceBlockingStub stub, com.google.api.gax.retrying.RetrySettings retrySettings)
public CloudRegion region()
AdminClientregion in interface AdminClientpublic com.google.api.core.ApiFuture<Topic> createTopic(Topic topic)
AdminClientcreateTopic in interface AdminClienttopic - The topic to create.StatusException or the topic on
success.public com.google.api.core.ApiFuture<Topic> getTopic(TopicPath path)
AdminClientid if it exists.getTopic in interface AdminClientpath - The path of the topic to retrieve.StatusException or the topic on
success.public com.google.api.core.ApiFuture<Long> getTopicPartitionCount(TopicPath path)
AdminClientid if it exists.getTopicPartitionCount in interface AdminClientpath - The path of the topic to retrieve.StatusException or the number
of topic partitions on success.public com.google.api.core.ApiFuture<List<Topic>> listTopics(LocationPath path)
AdminClientlistTopics in interface AdminClientpath - The path of the project to list topics for.StatusException or the list of
topic paths on success.public com.google.api.core.ApiFuture<Topic> updateTopic(Topic topic, com.google.protobuf.FieldMask mask)
AdminClienttopic.getPath() if it exists.updateTopic in interface AdminClienttopic - The topic to update.mask - The mask indicating which fields should be updated.StatusException or the
resulting topic on success. Updating nonexistent topics will cause the future to have an
exception with status Status.Code.NOT_FOUNDpublic com.google.api.core.ApiFuture<Void> deleteTopic(TopicPath path)
AdminClientid if it exists.deleteTopic in interface AdminClientpath - The path of the topic to retrieve.StatusException or void on
success. Deleting nonexistent topics will cause the future to have an exception with status
Status.Code.NOT_FOUNDpublic com.google.api.core.ApiFuture<List<SubscriptionPath>> listTopicSubscriptions(TopicPath path)
AdminClientid if it exists.listTopicSubscriptions in interface AdminClientpath - The path of the topic to retrieve.StatusException or the list of
subscriptions on success.public com.google.api.core.ApiFuture<Subscription> createSubscription(Subscription subscription)
AdminClientcreateSubscription in interface AdminClientsubscription - The subscription to create.StatusException or the
subscription on success.public com.google.api.core.ApiFuture<Subscription> getSubscription(SubscriptionPath path)
AdminClientid if it exists.getSubscription in interface AdminClientpath - The path of the subscription to retrieve.StatusException or the
subscription on success.public com.google.api.core.ApiFuture<List<Subscription>> listSubscriptions(LocationPath path)
AdminClientlistSubscriptions in interface AdminClientpath - The path of the project to list subscriptions for.StatusException or the list of
subscription paths on success.public com.google.api.core.ApiFuture<Subscription> updateSubscription(Subscription subscription, com.google.protobuf.FieldMask mask)
AdminClientsubscription.getPath() if it exists.updateSubscription in interface AdminClientsubscription - The subscription to update.mask - The mask indicating which fields should be updated.StatusException or the
resulting subscription on success. Updating nonexistent subscriptions will cause the future
to have an exception with status Status.Code.NOT_FOUNDpublic com.google.api.core.ApiFuture<Void> deleteSubscription(SubscriptionPath path)
AdminClientid if it exists.deleteSubscription in interface AdminClientpath - The path of the subscription to retrieve.StatusException or void on
success. Deleting nonexistent subscriptions will cause the future to have an exception with
status Status.Code.NOT_FOUNDCopyright © 2020 Google LLC. All rights reserved.