diff options
Diffstat (limited to 'src/main/java/com')
-rw-r--r-- | src/main/java/com/amazon/carbonado/repo/sleepycat/BDBRepositoryBuilder.java | 23 |
1 files changed, 23 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 4df17f5..6def603 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 boolean mReadOnly;
private Long mCacheSize;
private Integer mCachePercent;
+ private Integer mLogRegionSize;
private double mLockTimeout = 0.5;
private Integer mMaxLocks;
private double mTxnTimeout = 300.0;
@@ -522,6 +523,28 @@ public final class BDBRepositoryBuilder extends AbstractRepositoryBuilder { }
/**
+ * Set the repository log region size, in bytes.
+ */
+ public void setLogRegionSize(int logRegionSize) {
+ mLogRegionSize = logRegionSize;
+ }
+
+ /**
+ * Set the repository log region size, in bytes.
+ */
+ public void setLogRegionSize(Integer logRegionSize) {
+ mLogRegionSize = logRegionSize;
+ }
+
+ /**
+ * Returns the repository log region size, or null if the default
+ * should be selected.
+ */
+ public Integer getLogRegionSize() {
+ return mLogRegionSize;
+ }
+
+ /**
* Set the percent of JVM heap used by the repository cache. Actual
* BDB implementation will select a suitable default if this is not
* set. This is overridden by setting an explicit cacheSize.
|