DbEnv.rep_elect |
![]()
|
import com.sleepycat.db.*;public int rep_elect(int nsites, int pri, int timeout); throws DbException;
The DbEnv.rep_elect method holds an election for the master of a replication group, returning the new master's I6-->
DbMemoryException |
![]()
|
import com.sleepycat.db.*;public class DbMemoryException extends DbException { public Dbt get_dbt(); }
This manual page describes the DbMemoryException class and how it is used by the various Db* classes.
A DbMemoryException is thrown when there is insufficient memory to complete an operation, and there is the possibility of recovering. An example is during a Db.get or Dbc.get operation with the Dbt flags set to Db.DB_DBT_USERMEM.
In a Java Virtual Machine, there are usually separate heaps for memory allocated by native code and for objects allocated in Java code. If the Java heap is exhausted, the JVM will throw an OutOfMemoryError, so you may see that exception rather than DbMemoryException.
The get_dbt method returns the Dbt that has insufficient memory to complete the operation, causing the DbMemoryException to be thrown.
![]()
|
Copyright Sleepycat Software ./usr/share/doc/db4.1-doc/api_java/rep_elect.html 0000644 0000000 0000000 00000010342 07540465171 021617 0 ustar root root 0000000 0000000