Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
@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