Created
September 20, 2018 20:47
-
-
Save MovileGente/5bff9c31db7014e8364798e2cf509b9c to your computer and use it in GitHub Desktop.
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
@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