|
1 | 1 | /*
|
2 |
| - * Copyright 2018-2021 the original author or authors. |
| 2 | + * Copyright 2018-2023 the original author or authors. |
3 | 3 | *
|
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License");
|
5 | 5 | * you may not use this file except in compliance with the License.
|
|
50 | 50 | import org.springframework.integration.core.MessageSource;
|
51 | 51 | import org.springframework.integration.dsl.IntegrationFlow;
|
52 | 52 | import org.springframework.integration.dsl.IntegrationFlowBuilder;
|
53 |
| -import org.springframework.integration.dsl.IntegrationFlows; |
54 | 53 | import org.springframework.integration.endpoint.MessageProducerSupport;
|
55 | 54 | import org.springframework.integration.file.FileHeaders;
|
56 | 55 | import org.springframework.integration.file.filters.ChainFileListFilter;
|
@@ -211,7 +210,7 @@ public Publisher<Message<Object>> sftpReadingFlow(
|
211 | 210 | SftpSupplierProperties sftpSupplierProperties,
|
212 | 211 | FileConsumerProperties fileConsumerProperties) {
|
213 | 212 |
|
214 |
| - return FileUtils.enhanceStreamFlowForReadingMode(IntegrationFlows |
| 213 | + return FileUtils.enhanceStreamFlowForReadingMode(IntegrationFlow |
215 | 214 | .from(IntegrationReactiveUtils.messageSourceToFlux(sftpMessageSource)
|
216 | 215 | .delaySubscription(subscriptionBarrier)
|
217 | 216 | .contextWrite(Context.of(IntegrationReactiveUtils.DELAY_WHEN_EMPTY_KEY,
|
@@ -258,7 +257,7 @@ public Publisher<Message<Object>> sftpReadingFlow(
|
258 | 257 | FileConsumerProperties fileConsumerProperties,
|
259 | 258 | @Nullable MessageHandler renameRemoteFileHandler) {
|
260 | 259 |
|
261 |
| - IntegrationFlowBuilder flowBuilder = FileUtils.enhanceFlowForReadingMode(IntegrationFlows |
| 260 | + IntegrationFlowBuilder flowBuilder = FileUtils.enhanceFlowForReadingMode(IntegrationFlow |
262 | 261 | .from(IntegrationReactiveUtils.messageSourceToFlux(sftpMessageSource)
|
263 | 262 | .delaySubscription(subscriptionBarrier)
|
264 | 263 | .contextWrite(Context.of(IntegrationReactiveUtils.DELAY_WHEN_EMPTY_KEY,
|
@@ -367,7 +366,7 @@ public IntegrationFlow listingFlow(MessageProducerSupport listingMessageProducer
|
367 | 366 | GenericSelector<Message<?>> duplicateFilter,
|
368 | 367 | GenericSelector<String> listOnlyFilter) {
|
369 | 368 |
|
370 |
| - return IntegrationFlows.from(listingMessageProducer) |
| 369 | + return IntegrationFlow.from(listingMessageProducer) |
371 | 370 | .split()
|
372 | 371 | .transform(lsEntryToStringTransformer)
|
373 | 372 | .filter(duplicateFilter)
|
|
0 commit comments