INT-4546: Expose IMAP cancel interval via DSL

JIRA: https://jira.spring.io/browse/INT-4546

(cherry picked from commit 743afafa97)
This commit is contained in:
Gary Russell
2018-10-16 12:08:44 -04:00
committed by Artem Bilan
parent ce78a26789
commit e3c4175187

View File

@@ -65,4 +65,19 @@ public class ImapMailInboundChannelAdapterSpec
return this;
}
/**
* How often to recycle the idle task (in case of a silently dropped connection).
* Seconds; default 120 (2 minutes).
* @param interval the interval.
* @return the spec.
* @see ImapMailReceiver#setCancelIdleInterval(long)
* @since 5.0.10
*/
public ImapMailInboundChannelAdapterSpec cancelIdleInterval(long interval) {
assertReceiver();
this.receiver.setCancelIdleInterval(interval);
return this;
}
}