Skip to content

Commit 2e9bead

Browse files
authored
GH-3858: Add ImapIdleChASpec.reconnectDelay()
Fixes #3858
1 parent 573c297 commit 2e9bead

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

spring-integration-mail/src/main/java/org/springframework/integration/mail/dsl/ImapIdleChannelAdapterSpec.java

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2014-2021 the original author or authors.
2+
* Copyright 2014-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -52,6 +52,7 @@
5252
*
5353
* @author Gary Russell
5454
* @author Artem Bilan
55+
* @author Freya Nair
5556
*
5657
* @since 5.0
5758
*/
@@ -383,6 +384,17 @@ public ImapIdleChannelAdapterSpec cancelIdleInterval(long interval) {
383384
return this;
384385
}
385386

387+
/**
388+
* The time between connection attempts in milliseconds (default 10 seconds).
389+
* @param reconnectDelay the reconnectDelay to set.
390+
* @return the spec.
391+
* @since 6.0
392+
*/
393+
public ImapIdleChannelAdapterSpec reconnectDelay(long reconnectDelay) {
394+
this.target.setReconnectDelay(reconnectDelay);
395+
return this;
396+
}
397+
386398
/**
387399
* Determine how the content is rendered.
388400
* @param simpleContent true for simple content.

0 commit comments

Comments
 (0)