DbEnv.rep_process_message |
import com.sleepycat.db.*;public void rep_process_message(Dbt *control, Dbt *rec, int *envid) throws DbException;
The DbEnv.rep_process_message method processes an incoming replication message sent by a member of the replication group to the local database environment.
The rec and control parameters should reference a copy of the parameters specified by Berkeley DB for the rec and control parameters on the sending environment.
The envid parameter should contain the local identifier that corresponds to the environment that sent the message to be processed (see Replication environment IDs for more information).
For implementation reasons, all incoming replication messages must be processed using the same DbEnv handle. It is not required that a single thread of control process all messages, only that all threads of control processing messages use the same handle.
The DbEnv.rep_process_message method may return one of several special conditions:
Otherwise, the DbEnv.rep_process_message method throws an exception that encapsulates a non-zero error value on failure.
The DbEnv.rep_process_message method may fail and throw an exception for errors specified for other Berkeley DB and C library or system methods. If a catastrophic error has occurred, the DbEnv.rep_process_message method may fail and throw a DbRunRecoveryException, in which case all subsequent Berkeley DB calls will fail in the same way.