diff options
Diffstat (limited to 'src/main/java/com/amazon/carbonado/repo/sleepycat')
-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.
*/
|