| Package | Description |
|---|---|
| com.google.cloud.pubsub |
A client to Google Cloud Pub/Sub.
|
| Modifier and Type | Method and Description |
|---|---|
Topic |
Topic.Builder.build() |
Topic |
PubSub.create(TopicInfo topic)
Creates a new topic.
|
Topic |
PubSub.getTopic(String topic)
Returns the requested topic or
null if not found. |
Topic |
Topic.reload()
Fetches current topic's latest information.
|
| Modifier and Type | Method and Description |
|---|---|
Future<Topic> |
PubSub.createAsync(TopicInfo topic)
Sends a request for creating a topic.
|
Future<Topic> |
PubSub.getTopicAsync(String topic)
Sends a request for getting a topic.
|
Page<Topic> |
PubSub.listTopics(PubSub.ListOption... options)
Lists the topics.
|
Future<AsyncPage<Topic>> |
PubSub.listTopicsAsync(PubSub.ListOption... options)
Sends a request for listing topics.
|
Future<Topic> |
Topic.reloadAsync()
Sends a request to fetch current topic's latest information.
|
Copyright © 2016 Google. All rights reserved.