Örnek - Consumer
Şöyle yaparız.
Açıklaması şöyle.
Şöyle yaparız.
Şöyle yaparız.
@Bean
public IntegrationFlow lines(FileWritingMessageHandler fileOut) {
return f -> f.handle(fileOut);
}
publishSubscribeChannel metoduAçıklaması şöyle.
The publishSubscribeChannel() method broadcasts messages to all subscribing subflows.Örnek - Consumer + Producer
...
In this way, the subflows are anonymous, meaning that they can't be independently addressed.
Şöyle yaparız.
@Bean
public IntegrationFlow markers() {
return f -> f.<FileSplitter.FileMarker>filter(m ->...,...)
.publishSubscribeChannel(s -> s
// first trigger file flushes
.subscribe(...)
// send the first file
.subscribe(...)
// send the second file
.subscribe(...)
// send the third file
.subscribe(...)
// send an email
.subscribe(...));
}
Hiç yorum yok:
Yorum Gönder