You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* GH-8577: Revise `ImapIdleChannelAdapter` logic
Fixes#8577
When we process mail messages in async manner, it is possible that we end up
in a race condition situation where the next idle cycle closes the folder.
It is possible to reopen the folder, but feels better to block the current idle
cycle until we are done with the message and therefore keep folder opened.
* Deprecate `ImapIdleChannelAdapter.sendingTaskExecutor` in favor of an `ExecutorChannel`
as an output for this channel adapter or similar async hand-off downstream.
* Make use of `shouldReconnectAutomatically` as it is advertised for this channel adapter
* Optimize the proxy creation for message sending task
* * Remove `ImapIdleChannelAdapter.sendingTaskExecutor`
* Fix language in docs
Co-authored-by: Gary Russell <[email protected]>
---------
Co-authored-by: Gary Russell <[email protected]>
Copy file name to clipboardExpand all lines: spring-integration-mail/src/main/java/org/springframework/integration/mail/config/ImapIdleChannelAdapterParser.java
+1-3Lines changed: 1 addition & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2002-2019 the original author or authors.
2
+
* Copyright 2002-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.
Copy file name to clipboardExpand all lines: spring-integration-mail/src/main/java/org/springframework/integration/mail/dsl/ImapIdleChannelAdapterSpec.java
+1-13Lines changed: 1 addition & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2014-2022 the original author or authors.
2
+
* Copyright 2014-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.
@@ -22,7 +22,6 @@
22
22
importjava.util.List;
23
23
importjava.util.Map;
24
24
importjava.util.Properties;
25
-
importjava.util.concurrent.Executor;
26
25
importjava.util.function.Consumer;
27
26
importjava.util.function.Function;
28
27
@@ -348,17 +347,6 @@ public ImapIdleChannelAdapterSpec transactional() {
348
347
returntransactional(transactionInterceptor);
349
348
}
350
349
351
-
/**
352
-
* Specify a task executor to be used to send messages to the downstream flow.
353
-
* @param sendingTaskExecutor the sendingTaskExecutor.
Copy file name to clipboardExpand all lines: spring-integration-mail/src/main/resources/org/springframework/integration/mail/config/spring-integration-mail.xsd
0 commit comments