INT-4546: Expose IMAP cancel interval via DSL
JIRA: https://jira.spring.io/browse/INT-4546
This commit is contained in:
committed by
Artem Bilan
parent
2a49cddca9
commit
743afafa97
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user