Interface PubSubPublisherOperations
- All Known Subinterfaces:
PubSubOperations
- All Known Implementing Classes:
PubSubPublisherTemplate,PubSubTemplate
public interface PubSubPublisherOperations
An abstraction for Google Cloud Pub/Sub publisher operations.
- Since:
- 1.1
-
Method Summary
Modifier and TypeMethodDescriptionSend a message to Pub/Sub.<T> CompletableFuture<String>Send a message to Pub/Sub.<T> CompletableFuture<String>Send a message to Pub/Sub.
-
Method Details
-
publish
Send a message to Pub/Sub.- Type Parameters:
T- the type of the payload to publish- Parameters:
topic- short topic name, e.g., "topicName", or the fully-qualified topic name in theprojects/[project_name]/topics/[topic_name]formatpayload- an object that will be serialized and sentheaders- the headers to publish- Returns:
- the listenable future of the call
-
publish
Send a message to Pub/Sub.- Type Parameters:
T- the type of the payload to publish- Parameters:
topic- short topic name, e.g., "topicName", or the fully-qualified topic name in theprojects/[project_name]/topics/[topic_name]formatpayload- an object that will be serialized and sent- Returns:
- the listenable future of the call
-
publish
Send a message to Pub/Sub.- Parameters:
topic- short topic name, e.g., "topicName", or the fully-qualified topic name in theprojects/[project_name]/topics/[topic_name]formatpubsubMessage- a Google Cloud Pub/Sub API message- Returns:
- the listenable future of the call
-