Created
September 20, 2018 20:51
-
-
Save MovileGente/77475ae656061b78d751d8b045219ce3 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({Processor.class}) | |
public class PaymentProcessor { | |
private final Logger LOGGER = LoggerFactory.getLogger(PaymentProcessor.class); | |
@SendTo(Processor.OUTPUT) | |
@StreamListener(target = Processor.INPUT) | |
public Message<Map<String, Object>> processPayment(Message<Map<String, Object>> paymentApprovalRequest) { | |
Map<String, Object> request = paymentApprovalRequest.getPayload(); | |
……….. | |
return MessageBuilder.withPayload(request) | |
.setHeader("notificationPriority", priority) | |
.build(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment