Skip to content

Commit

Permalink
INT-4546: Expose IMAP cancel interval via DSL
Browse files Browse the repository at this point in the history
JIRA: https://jira.spring.io/browse/INT-4546

(cherry picked from commit 743afaf)
  • Loading branch information
garyrussell authored and artembilan committed Oct 16, 2018
1 parent ce78a26 commit e3c4175
Showing 1 changed file with 15 additions and 0 deletions.
Expand Up @@ -65,4 +65,19 @@ public ImapMailInboundChannelAdapterSpec shouldMarkMessagesAsRead(boolean should
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;
}


}

0 comments on commit e3c4175

Please sign in to comment.