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
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office"><head> <!--[if gte mso 15]><xml> <o:OfficeDocumentSettings> <o:AllowPNG/> <o:PixelsPerInch>96</o:PixelsPerInch> </o:OfficeDocumentSettings> </xml><![endif]--> <!--[if gte mso 9]><xml> <o:OfficeDocumentSettings> <o:AllowPNG/> <o:PixelsPerInch>96</o:PixelsPerInch> </o:OfficeDocumentSettings> </xml><![endif]--> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<script type="text/javascript" src="https://bam.nr-data.net/1/98debe0088?a=22367170&v=1071.385e752&to=dF9ZQ0oJWlhRR00AD1ZZW2heCllDG0UQABReVUAYSw5ZQw%3D%3D&rst=29&ref=https://app.rdstation.com.br/email/1833956/novo/conteudo&ap=191&be=7&fe=24&dc=11&af=err,xhr,stn,ins&perf=%7B%22timing%22:%7B%22of%22:1528236491562,%22n%22:0,%22rpe%22:0,%22dl%22:0,%22di%22:1,%22ds%22:1,%22de%22:1,%22dc%22:1,%22l%22:1,%22le%22:1%7D,%22navigation%22:%7B%7D%7D&jsonp=NREUM.setToke |
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
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office"><head> <!--[if gte mso 15]><xml> <o:OfficeDocumentSettings> <o:AllowPNG/> <o:PixelsPerInch>96</o:PixelsPerInch> </o:OfficeDocumentSettings> </xml><![endif]--> <!--[if gte mso 9]><xml> <o:OfficeDocumentSettings> <o:AllowPNG/> <o:PixelsPerInch>96</o:PixelsPerInch> </o:OfficeDocumentSettings> </xml><![endif]--> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<script type="text/javascript" src="https://bam.nr-data.net/1/98debe0088?a=22367170&v=1071.385e752&to=dF9ZQ0oJWlhRR00AD1ZZW2heCllDG0UQABReVUAYSw5ZQw%3D%3D&rst=109&ref=https://app.rdstation.com.br/email/1833947/novo/conteudo&ap=111&be=15&fe=58&dc=24&af=err,xhr,stn,ins&perf=%7B%22timing%22:%7B%22of%22:1528236646534,%22n%22:0,%22rpe%22:1,%22dl%22:1,%22di%22:2,%22ds%22:2,%22de%22:2,%22dc%22:2,%22l%22:3,%22le%22:3%7D,%22navigation%22:%7B%7D%7D&jsonp=NREUM.setTo |
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
public interface Processor extends Source, Sink { | |
} |
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
public interface Sink { | |
String INPUT = "input"; | |
@Input(Sink.INPUT) | |
SubscribableChannel input(); | |
} |
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
public interface MySink { | |
String INPUT1 = "input1"; | |
String INPUT2 = "input2"; | |
@Input(Sink.INPUT1) | |
SubscribableChannel input1(); | |
@Input(Sink.INPUT2) | |
SubscribableChannel input2(); | |
} |
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
cloud.stream: | |
bindings.input: | |
destination: payment-approval-topic | |
group: payment-service-consumer | |
bindings.output: | |
destination: payment-notification-topic | |
contentType: application/json |
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()); |
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(); | |
……….. |
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({Sink.class}) | |
public class EmailSink { | |
private static final Logger LOGGER = LoggerFactory.getLogger(EmailSink.class); | |
@StreamListener(target = Sink.INPUT, condition = "headers['notificationPriority']=='normal'") | |
public void sentEmail(Message<Map<String, Object>> paymentNotification) { | |
String status = String.valueOf(paymentNotification.getPayload().getOrDefault("status", "pending")); | |
LOGGER.info("Normal Payment =" + status); | |
} |
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
cloud.stream: | |
bindings.input: | |
destination: payment-notification-topic | |
group: email-service-consumer |
OlderNewer