-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added AuroraClusterMonitor.setServerCheckDelayMillis
This solves a TODO note to allow the frequency at which the server master / slave status is checked. Though the default of 2 a second should be good in most cases, I can see where a small client count system may want to reduce this further, or where a larger service may want to increase the delay. Between this commit and the last commit (which introduced setClientInfo configuration), this resolves #8
- Loading branch information
Showing
3 changed files
with
92 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
arcCommon/src/test/java/org/threadly/db/aurora/AuroraClusterMonitorTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package org.threadly.db.aurora; | ||
|
||
import static org.junit.Assert.fail; | ||
|
||
import org.junit.Test; | ||
|
||
public class AuroraClusterMonitorTest { | ||
@Test (expected = IllegalArgumentException.class) | ||
public void setServerCheckDelayMillisFail() { | ||
AuroraClusterMonitor.setServerCheckDelayMillis(0); | ||
fail("Exception expected"); | ||
} | ||
} |