Skip to content

Commit

Permalink
GH-3858: Add ImapIdleChASpec.reconnectDelay()
Browse files Browse the repository at this point in the history
Fixes #3858
  • Loading branch information
freyan929 committed Jul 26, 2022
1 parent 573c297 commit 2e9bead
Showing 1 changed file with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2014-2021 the original author or authors.
* Copyright 2014-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -52,6 +52,7 @@
*
* @author Gary Russell
* @author Artem Bilan
* @author Freya Nair
*
* @since 5.0
*/
Expand Down Expand Up @@ -383,6 +384,17 @@ public ImapIdleChannelAdapterSpec cancelIdleInterval(long interval) {
return this;
}

/**
* The time between connection attempts in milliseconds (default 10 seconds).
* @param reconnectDelay the reconnectDelay to set.
* @return the spec.
* @since 6.0
*/
public ImapIdleChannelAdapterSpec reconnectDelay(long reconnectDelay) {
this.target.setReconnectDelay(reconnectDelay);
return this;
}

/**
* Determine how the content is rendered.
* @param simpleContent true for simple content.
Expand Down

0 comments on commit 2e9bead

Please sign in to comment.