/** * Configures the page size used by the page file. By default it is 4k. Once a page file is created on disk, * subsequent loads of that file will use the original pageSize. Once the PageFile is loaded, this setting * can no longer be changed. * * @param pageSize the pageSize to set * @throws IllegalStateException once the page file is loaded. */ public void setPageSize(int pageSize) throws IllegalStateException { assertNotLoaded(); this.pageSize = pageSize; }
/** * Allows you enable syncing writes to disk. */ public void setEnableDiskSyncs(boolean syncWrites) { assertNotLoaded(); this.enableDiskSyncs = syncWrites; }
/** * Sets if the recovery buffer uses to double buffer page writes. Enabled by default. Disabling this * may potentially cause partial page writes which can lead to page file corruption. */ public void setEnableRecoveryFile(boolean doubleBuffer) { assertNotLoaded(); this.enableRecoveryFile = doubleBuffer; }
/** * @param enablePageCaching allows you to enable read page caching */ public void setEnablePageCaching(boolean enablePageCaching) { assertNotLoaded(); this.enablePageCaching = enablePageCaching; }
/** * @param pageCacheSize Sets the maximum number of pages that will get stored in the read page cache. */ public void setPageCacheSize(int pageCacheSize) { assertNotLoaded(); this.pageCacheSize = pageCacheSize; }
public void setEnableWriteThread(boolean enableAsyncWrites) { assertNotLoaded(); this.enabledWriteThread = enableAsyncWrites; }
public void setRecoveryFileMinPageCount(int recoveryFileMinPageCount) { assertNotLoaded(); this.recoveryFileMinPageCount = recoveryFileMinPageCount; }
public void setRecoveryFileMaxPageCount(int recoveryFileMaxPageCount) { assertNotLoaded(); this.recoveryFileMaxPageCount = recoveryFileMaxPageCount; }
/** * Allows you enable syncing writes to disk. */ public void setEnableDiskSyncs(boolean syncWrites) { assertNotLoaded(); this.enableDiskSyncs = syncWrites; }
/** * @param enablePageCaching allows you to enable read page caching */ public void setEnablePageCaching(boolean enablePageCaching) { assertNotLoaded(); this.enablePageCaching = enablePageCaching; }
public void setRecoveryFileMaxPageCount(int recoveryFileMaxPageCount) { assertNotLoaded(); this.recoveryFileMaxPageCount = recoveryFileMaxPageCount; }
public void setRecoveryFileMaxPageCount(int recoveryFileMaxPageCount) { assertNotLoaded(); this.recoveryFileMaxPageCount = recoveryFileMaxPageCount; }
/** * Sets if the recovery buffer uses to double buffer page writes. Enabled by default. Disabling this * may potentially cause partial page writes which can lead to page file corruption. */ public void setEnableRecoveryFile(boolean doubleBuffer) { assertNotLoaded(); this.enableRecoveryFile = doubleBuffer; }
/** * Configures the page size used by the page file. By default it is 4k. Once a page file is created on disk, * subsequent loads of that file will use the original pageSize. Once the PageFile is loaded, this setting * can no longer be changed. * * @param pageSize the pageSize to set * @throws IllegalStateException once the page file is loaded. */ public void setPageSize(int pageSize) throws IllegalStateException { assertNotLoaded(); this.pageSize = pageSize; }
/** * Allows you enable syncing writes to disk. */ public void setEnableDiskSyncs(boolean syncWrites) { assertNotLoaded(); this.enableDiskSyncs = syncWrites; }
/** * @param pageCacheSize Sets the maximum number of pages that will get stored in the read page cache. */ public void setPageCacheSize(int pageCacheSize) { assertNotLoaded(); this.pageCacheSize = pageCacheSize; }
public void setRecoveryFileMinPageCount(int recoveryFileMinPageCount) { assertNotLoaded(); this.recoveryFileMinPageCount = recoveryFileMinPageCount; }
/** * @param enablePageCaching allows you to enable read page caching */ public void setEnablePageCaching(boolean enablePageCaching) { assertNotLoaded(); this.enablePageCaching = enablePageCaching; }
/** * @param pageCacheSize Sets the maximum number of pages that will get stored in the read page cache. */ public void setPageCacheSize(int pageCacheSize) { assertNotLoaded(); this.pageCacheSize = pageCacheSize; }
/** * @param enablePageCaching allows you to enable read page caching */ public void setEnablePageCaching(boolean enablePageCaching) { assertNotLoaded(); this.enablePageCaching = enablePageCaching; }