1 8 9 package com.sleepycat.je; 10 11 15 public class PreloadConfig implements Cloneable { 16 17 21 public static final PreloadConfig DEFAULT = new PreloadConfig(); 22 23 private long maxBytes; 24 private long maxMillisecs; 25 private boolean loadLNs; 26 27 31 public PreloadConfig() { 32 } 33 34 38 public void setMaxBytes(long maxBytes) { 39 this.maxBytes = maxBytes; 40 } 41 42 46 public long getMaxBytes() { 47 return maxBytes; 48 } 49 50 54 public void setMaxMillisecs(long maxMillisecs) { 55 this.maxMillisecs = maxMillisecs; 56 } 57 58 62 public long getMaxMillisecs() { 63 return maxMillisecs; 64 } 65 66 70 public void setLoadLNs(boolean loadLNs) { 71 this.loadLNs = loadLNs; 72 } 73 74 78 public boolean getLoadLNs() { 79 return loadLNs; 80 } 81 82 86 DatabaseConfig cloneConfig() { 87 try { 88 return (DatabaseConfig) super.clone(); 89 } catch (CloneNotSupportedException willNeverOccur) { 90 return null; 91 } 92 } 93 } 94 | Popular Tags |