Created
December 19, 2018 00:56
-
-
Save fmachado091/ee74206559002dda84985ca25f88072c to your computer and use it in GitHub Desktop.
PubSubTemplate methods for publishing and consuming messages.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Send a message to Pub/Sub. | |
*/ | |
public <T> ListenableFuture<String> publish(String topic, T payload); | |
/** | |
* Add a callback method to an existing subscription. | |
*/ | |
public Subscriber subscribe(String subscription, Consumer<BasicAcknowledgeablePubsubMessage> messageConsumer); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment