Exemple #1
0
 public void preload__wrappee__base(long maxBytes) throws DatabaseException {
   checkEnv();
   checkRequiredDbState(OPEN, "Can't call Database.preload");
   this.hook55();
   PreloadConfig config = new PreloadConfig();
   config.setMaxBytes(maxBytes);
   databaseImpl.preload(config);
 }
Exemple #2
0
  /*
   * @deprecated As of JE 2.0.55, replaced by
   * {@link Database#preload(PreloadConfig)}.
   */
  public void preload(long maxBytes) throws DatabaseException {

    checkEnv();
    checkRequiredDbState(OPEN, "Can't call Database.preload");
    databaseImpl.checkIsDeleted("preload");

    PreloadConfig config = new PreloadConfig();
    config.setMaxBytes(maxBytes);
    databaseImpl.preload(config);
  }