| Package | Description |
|---|---|
| com.google.cloud.pubsub |
A client to Google Cloud Pub/Sub.
|
| Modifier and Type | Method and Description |
|---|---|
static TopicId |
TopicId.deletedTopic()
Returns the identity of a deleted topic.
|
static TopicId |
TopicId.of(String topic)
Returns a topic identity given the topic name.
|
static TopicId |
TopicId.of(String project,
String topic)
Returns a topic identity given project and topic names.
|
TopicId |
SubscriptionInfo.topic()
Returns the identity of the topic this subscription refers to.
|
| Modifier and Type | Method and Description |
|---|---|
static SubscriptionInfo.Builder |
SubscriptionInfo.builder(TopicId topic,
String name)
Creates a builder for
SubscriptionInfo objects given the identity of the topic and the
name of the subscription. |
static SubscriptionInfo |
SubscriptionInfo.of(TopicId topic,
String name)
Creates a pull
SubscriptionInfo object given the identity of the topic and the name of
the subscription. |
static SubscriptionInfo |
SubscriptionInfo.of(TopicId topic,
String name,
String endpoint)
Creates a push
SubscriptionInfo object given the identity of the topic, the name of the
subscription and the push endpoint. |
abstract SubscriptionInfo.Builder |
SubscriptionInfo.Builder.topic(TopicId topic)
Sets the topic the subscription refers to, given the topic identity.
|
Subscription.Builder |
Subscription.Builder.topic(TopicId topic) |
Copyright © 2016 Google. All rights reserved.