| Package | Description |
|---|---|
| com.google.cloud.pubsub |
A client to Google Cloud Pub/Sub.
|
| Modifier and Type | Class and Description |
|---|---|
class |
Subscription
A Google Cloud Pub/Sub subscription.
|
| Modifier and Type | Method and Description |
|---|---|
abstract SubscriptionInfo |
SubscriptionInfo.Builder.build()
Creates a subscription object.
|
static SubscriptionInfo |
SubscriptionInfo.of(String topic,
String name)
Creates a pull
SubscriptionInfo object given the name of the topic and the name of the
subscription. |
static SubscriptionInfo |
SubscriptionInfo.of(String topic,
String name,
String endpoint)
Creates a push
SubscriptionInfo object given the name of the topic, the name of the
subscription and the push endpoint. |
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. |
| Modifier and Type | Method and Description |
|---|---|
Subscription |
PubSub.create(SubscriptionInfo subscription)
Creates a new subscription.
|
Future<Subscription> |
PubSub.createAsync(SubscriptionInfo subscription)
Sends a request for creating a subscription.
|
Copyright © 2016 Google. All rights reserved.