Skip to content

Instantly share code, notes, and snippets.

@MovileGente
Created September 20, 2018 20:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MovileGente/5bff9c31db7014e8364798e2cf509b9c to your computer and use it in GitHub Desktop.
Save MovileGente/5bff9c31db7014e8364798e2cf509b9c to your computer and use it in GitHub Desktop.
@EnableBinding({Source.class})
public class SubscriptionRequestsProducer {
private final Source source;
public SubscriptionRequestsProducer(Source source) {
this.source = source;
}
public void requestApproval(Map<String, Object> subscriptionRequest) {
source.output().send(MessageBuilder.withPayload(subscriptionRequest).build());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment