Modifier and Type | Class and Description |
---|---|
class |
Pubsub.Topics.Create |
class |
Pubsub.Topics.Delete |
class |
Pubsub.Topics.Get |
class |
Pubsub.Topics.List |
class |
Pubsub.Topics.Publish |
class |
Pubsub.Topics.PublishBatch |
Constructor and Description |
---|
Topics() |
Modifier and Type | Method and Description |
---|---|
Pubsub.Topics.Create |
create(Topic content)
Creates the given topic with the given name.
|
Pubsub.Topics.Delete |
delete(String topic)
Deletes the topic with the given name.
|
Pubsub.Topics.Get |
get(String topic)
Gets the configuration of a topic.
|
Pubsub.Topics.List |
list()
Lists matching topics.
|
Pubsub.Topics.Publish |
publish(PublishRequest content)
Adds a message to the topic.
|
Pubsub.Topics.PublishBatch |
publishBatch(PublishBatchRequest content)
Adds one or more messages to the topic.
|
public Pubsub.Topics.Create create(Topic content) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.content
- the Topic
IOException
public Pubsub.Topics.Delete delete(String topic) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.topic
- Name of the topic to delete.IOException
public Pubsub.Topics.Get get(String topic) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.topic
- The name of the topic to get.IOException
public Pubsub.Topics.List list() throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.IOException
public Pubsub.Topics.Publish publish(PublishRequest content) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.content
- the PublishRequest
IOException
public Pubsub.Topics.PublishBatch publishBatch(PublishBatchRequest content) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.content
- the PublishBatchRequest
IOException
Copyright © 2011–2020 Google. All rights reserved.