| Type Params | Return Type | Name and description |
|---|---|---|
|
java.lang.Object |
createTopic(java.lang.String topicId)Creates a topic, gracefully handling if the topic already exists. |
|
java.lang.Object |
getProjectId()Returns the Google Cloud projectId. |
|
java.lang.Object |
publishTopic(java.lang.String topicId, java.lang.String message)Publish a message to a Google Cloud PubSub topic. |
|
java.lang.Object |
publishTopic(java.lang.String topicId, java.io.File file)Publish te contents of a file to a Google Cloud PubSub topic. |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Creates a topic, gracefully handling if the topic already exists.
topicId - The topic name to createReturns the Google Cloud projectId.
Publish a message to a Google Cloud PubSub topic.
topicId - The topic name to createmessage - The message to send to the topicPublish te contents of a file to a Google Cloud PubSub topic.
topicId - The topic name to createfile - The file object containing the data to send to the Google Cloud PubSub topic