public interface ReplicationTransport
Modifier and Type | Field | Description |
---|---|---|
static int |
EID_BROADCAST |
A message that should be broadcast to every environment in the
replication group.
|
static int |
EID_INVALID |
An invalid environment ID, and may be used to initialize environment ID
variables that are subsequently checked for validity.
|
Modifier and Type | Method | Description |
---|---|---|
int |
send(Environment environment,
DatabaseEntry control,
DatabaseEntry rec,
LogSequenceNumber lsn,
int envid,
boolean noBuffer,
boolean permanent,
boolean anywhere,
boolean isRetry) |
The callback used when Berkeley DB needs to transmit a replication message.
|
static final int EID_BROADCAST
static final int EID_INVALID
int send(Environment environment, DatabaseEntry control, DatabaseEntry rec, LogSequenceNumber lsn, int envid, boolean noBuffer, boolean permanent, boolean anywhere, boolean isRetry) throws DatabaseException
environment
- The enclosing database environment handle.
control
- The first of the two data elements to be transmitted.
rec
- The second of the two data elements to be transmitted.
lsn
- If the type of message to be sent has an LSN associated with it,
then the lsn contains the LSN of the record being sent. This LSN
can be used to determine that certain records have been processed
successfully by clients.
envid
- A positive integer identifier that specifies the replication
environment to which the message should be sent.
The value DB_EID_BROADCAST indicates that a message should be broadcast to every environment in the replication group. The application may use a true broadcast protocol or may send the message in sequence to each machine with which it is in communication. In both cases, the sending site should not be asked to process the message.
noBuffer
- The record being sent should be transmitted immediately and not buffered
or delayed.
permanent
- The record being sent is critical for maintaining database integrity
(for example, the message includes a transaction commit). The
application should take appropriate action to enforce the reliability
guarantees it has chosen, such as waiting for acknowledgement from one
or more clients.
anywhere
- The message is a client request that can be satisfied by another client as
well as by the master.
isRetry
- The message is a client request that has already been made and to which no
response was received.
DatabaseException
- if a failure occurs.Copyright (c) 1996, 2020 Oracle and/or its affiliates. All rights reserved.