diff options
author | Brian S. O'Neill <bronee@gmail.com> | 2011-01-20 00:58:24 +0000 |
---|---|---|
committer | Brian S. O'Neill <bronee@gmail.com> | 2011-01-20 00:58:24 +0000 |
commit | 66eeb92b1a496c248a52a17ac0b8620cc7920f26 (patch) | |
tree | af1e52aa4f178bbfc432b932745d065abcc3a98b /src/main/java/com/amazon/carbonado/repo | |
parent | dbf8f44f09ea99a128ecfccea7a94928e4439fe1 (diff) |
Add option to set max locks; increase default number of lockers.
Diffstat (limited to 'src/main/java/com/amazon/carbonado/repo')
-rw-r--r-- | src/main/java/com/amazon/carbonado/repo/sleepycat/BDBRepositoryBuilder.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main/java/com/amazon/carbonado/repo/sleepycat/BDBRepositoryBuilder.java b/src/main/java/com/amazon/carbonado/repo/sleepycat/BDBRepositoryBuilder.java index 0c66487..2a7a931 100644 --- a/src/main/java/com/amazon/carbonado/repo/sleepycat/BDBRepositoryBuilder.java +++ b/src/main/java/com/amazon/carbonado/repo/sleepycat/BDBRepositoryBuilder.java @@ -94,6 +94,7 @@ public final class BDBRepositoryBuilder extends AbstractRepositoryBuilder { private Long mCacheSize;
private Integer mCachePercent;
private double mLockTimeout = 0.5;
+ private Integer mMaxLocks;
private double mTxnTimeout = 300.0;
private boolean mTxnNoSync;
private boolean mTxnWriteNoSync;
@@ -501,6 +502,14 @@ public final class BDBRepositoryBuilder extends AbstractRepositoryBuilder { return inMicros(mLockTimeout);
}
+ public void setMaxLocks(Integer max) {
+ mMaxLocks = max;
+ }
+
+ public Integer getMaxLocks() {
+ return mMaxLocks;
+ }
+
/**
* Set the transaction timeout, in seconds. Default value is 300 seconds.
*/
|