1/* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.33
4 *
5 * Do not make changes to this file unless you know what you are doing--modify
6 * the SWIG interface file instead.
7 * ----------------------------------------------------------------------------- */
8
9package com.sleepycat.db.internal;
10
11import com.sleepycat.db.*;
12import java.util.Comparator;
13
14public class DbMpoolFile {
15  private long swigCPtr;
16  protected boolean swigCMemOwn;
17
18  protected DbMpoolFile(long cPtr, boolean cMemoryOwn) {
19    swigCMemOwn = cMemoryOwn;
20    swigCPtr = cPtr;
21  }
22
23  protected static long getCPtr(DbMpoolFile obj) {
24    return (obj == null) ? 0 : obj.swigCPtr;
25  }
26
27  /* package */ synchronized void delete() {
28    if(swigCPtr != 0 && swigCMemOwn) {
29      swigCMemOwn = false;
30      throw new UnsupportedOperationException("C++ destructor does not have public access");
31    }
32    swigCPtr = 0;
33  }
34
35  public int get_priority() throws com.sleepycat.db.DatabaseException {
36    return db_javaJNI.DbMpoolFile_get_priority(swigCPtr, this);
37  }
38
39  public void set_priority(int priority) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbMpoolFile_set_priority(swigCPtr, this, priority); }
40
41  public int get_flags() throws com.sleepycat.db.DatabaseException { return db_javaJNI.DbMpoolFile_get_flags(swigCPtr, this); }
42
43  public void set_flags(int flags, boolean onoff) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbMpoolFile_set_flags(swigCPtr, this, flags, onoff); }
44
45  public long get_maxsize() throws com.sleepycat.db.DatabaseException {
46    return db_javaJNI.DbMpoolFile_get_maxsize(swigCPtr, this);
47  }
48
49  public void set_maxsize(long bytes) throws com.sleepycat.db.DatabaseException { db_javaJNI.DbMpoolFile_set_maxsize(swigCPtr, this, bytes); }
50
51}
52