INT-4546: Expose IMAP cancel interval via DSL

JIRA: https://jira.spring.io/browse/INT-4546
This commit is contained in:
Gary Russell
2018-10-16 12:08:44 -04:00
committed by Artem Bilan
parent 2a49cddca9
commit 743afafa97

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;
}
}