| Package | Description |
|---|---|
| com.sleepycat.collections |
Data access based on the standard Java collections API.
|
| com.sleepycat.compat |
INTERNAL: BDB/JE compatibility layer for bind, collections, DPL packages.
|
| com.sleepycat.je |
Foundation for creating environments, databases and transactions; provides
cursor based data access.
|
| com.sleepycat.je.dbi |
INTERNAL: Underlying XxxImpl classes for Environment, Database and Cursor,
plus other misc classes (originally, dbi meant "db internal interface").
|
| com.sleepycat.je.rep.impl |
INTERNAL: Top level HA implementation classes.
|
| com.sleepycat.je.rep.txn |
INTERNAL: HA Txn/Locker subclasses for enforcing consistency and durability
constraints.
|
| com.sleepycat.je.txn |
INTERNAL: Transaction management and locking (concurrency control).
|
| com.sleepycat.persist |
The Direct Persistence Layer (DPL) adds a persistent object model to the
Berkeley DB transactional engine.
|
| Modifier and Type | Method and Description |
|---|---|
TransactionConfig |
TransactionRunner.getTransactionConfig()
Returns the transaction configuration used for calling
Environment.beginTransaction(com.sleepycat.je.Transaction, com.sleepycat.je.TransactionConfig). |
| Modifier and Type | Method and Description |
|---|---|
Transaction |
CurrentTransaction.beginTransaction(TransactionConfig config)
Begins a new transaction for this environment and associates it with
the current thread.
|
void |
TransactionRunner.setTransactionConfig(TransactionConfig config)
Changes the transaction configuration used for calling
Environment.beginTransaction(com.sleepycat.je.Transaction, com.sleepycat.je.TransactionConfig). |
| Constructor and Description |
|---|
TransactionRunner(Environment env,
int maxRetries,
TransactionConfig config)
Creates a transaction runner for a given Berkeley DB environment and
with a given number of maximum retries.
|
| Modifier and Type | Field and Description |
|---|---|
static TransactionConfig |
DbCompat.READ_ONLY_TXN_CONFIG
For read-only cursor operations on a replicated node, we must use a
transaction to satisfy HA requirements.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
DbCompat.setSerializableIsolation(TransactionConfig config,
boolean val) |
| Modifier and Type | Field and Description |
|---|---|
static TransactionConfig |
TransactionConfig.DEFAULT
Default configuration used if null is passed to methods that create a
transaction.
|
| Modifier and Type | Method and Description |
|---|---|
TransactionConfig |
TransactionConfig.clone()
Returns a copy of this configuration object.
|
static TransactionConfig |
DbInternal.getDefaultTxnConfig(Environment env)
Proxy to Environment.getDefaultTxnConfig()
|
TransactionConfig |
TransactionConfig.setConsistencyPolicy(ReplicaConsistencyPolicy consistencyPolicy)
Associates a consistency policy with this configuration.
|
TransactionConfig |
TransactionConfig.setDurability(Durability durability)
Configures the durability associated with a transaction when it commits.
|
TransactionConfig |
TransactionConfig.setLocalWrite(boolean localWrite)
Configures this transaction to allow writing to non-replicated
Databases in a
ReplicatedEnvironment. |
TransactionConfig |
TransactionConfig.setNoSync(boolean noSync)
Deprecated.
replaced by
setDurability(com.sleepycat.je.Durability) |
TransactionConfig |
TransactionConfig.setNoWait(boolean noWait)
Configures the transaction to not wait if a lock request cannot be
immediately granted.
|
TransactionConfig |
TransactionConfig.setReadCommitted(boolean readCommitted)
Configures the transaction for read committed isolation.
|
TransactionConfig |
TransactionConfig.setReadOnly(boolean readOnly)
Configures this transaction to disallow write operations, regardless of
whether writes are allowed for the
Environment or the
Databases that are accessed. |
TransactionConfig |
TransactionConfig.setReadUncommitted(boolean readUncommitted)
Configures read operations performed by the transaction to return
modified but not yet committed data.
|
TransactionConfig |
TransactionConfig.setSerializableIsolation(boolean serializableIsolation)
Configures this transaction to have serializable (degree 3) isolation.
|
TransactionConfig |
TransactionConfig.setSync(boolean sync)
Configures the transaction to write and synchronously flush the log it
when commits.
|
TransactionConfig |
TransactionConfig.setTxnTimeout(long timeOut,
TimeUnit unit)
Configures the timeout value for the transaction lifetime.
|
TransactionConfig |
TransactionConfig.setWriteNoSync(boolean writeNoSync)
Deprecated.
replaced by
setDurability(com.sleepycat.je.Durability) |
| Modifier and Type | Method and Description |
|---|---|
static Transaction |
DbInternal.beginInternalTransaction(Environment env,
TransactionConfig config) |
Transaction |
Environment.beginTransaction(Transaction parent,
TransactionConfig txnConfig)
Creates a new transaction in the database environment.
|
| Modifier and Type | Method and Description |
|---|---|
Txn |
EnvironmentImpl.createRepTxn(TransactionConfig config,
long mandatedId)
For replicated environments only; only the overridden method should
ever be called.
|
Txn |
EnvironmentImpl.createRepUserTxn(TransactionConfig config)
For replicated environments only; only the overridden method should
ever be called.
|
Txn |
EnvironmentImpl.txnBegin(Transaction parent,
TransactionConfig txnConfig)
Transactional services.
|
| Modifier and Type | Method and Description |
|---|---|
Txn |
RepImpl.createRepUserTxn(TransactionConfig config)
Create an appropriate type of Replicated transaction.
|
| Modifier and Type | Method and Description |
|---|---|
static MasterTxn |
MasterTxn.create(EnvironmentImpl envImpl,
TransactionConfig config,
NameIdPair nameIdPair) |
MasterTxn |
MasterTxn.MasterTxnFactory.create(EnvironmentImpl envImpl,
TransactionConfig config,
NameIdPair nameIdPair) |
static MasterTxn |
MasterTxn.createNullTxn(EnvironmentImpl envImpl,
TransactionConfig config,
NameIdPair nameIdPair) |
MasterTxn |
MasterTxn.MasterTxnFactory.createNullTxn(EnvironmentImpl envImpl,
TransactionConfig config,
NameIdPair nameIdPair)
Create a special "null" txn that does not result in any changes to
the environment.
|
protected void |
MasterTxn.txnBeginHook(TransactionConfig config)
Causes the transaction to wait until we have sufficient replicas to
acknowledge the commit.
|
protected void |
ReadonlyTxn.txnBeginHook(TransactionConfig config)
Verifies that consistency requirements are met before allowing the
transaction to proceed.
|
| Constructor and Description |
|---|
MasterTxn(EnvironmentImpl envImpl,
TransactionConfig config,
NameIdPair nameIdPair) |
ReadonlyTxn(EnvironmentImpl envImpl,
TransactionConfig config) |
ReplayTxn(EnvironmentImpl envImpl,
TransactionConfig config,
long txnId,
Logger logger)
Used when creating ReplayTxns at recovery.
|
ReplayTxn(EnvironmentImpl envImpl,
TransactionConfig config,
long txnId,
SimpleTxnMap<ReplayTxn> activeTxns,
Logger logger)
Used when creating ReplayTxns for Replay.
|
| Modifier and Type | Method and Description |
|---|---|
static Txn |
Txn.createAutoTxn(EnvironmentImpl envImpl,
TransactionConfig config,
ReplicationContext repContext) |
static Txn |
Txn.createLocalAutoTxn(EnvironmentImpl envImpl,
TransactionConfig config) |
static Txn |
Txn.createLocalTxn(EnvironmentImpl envImpl,
TransactionConfig config) |
static PreparedTxn |
PreparedTxn.createPreparedTxn(EnvironmentImpl envImpl,
TransactionConfig config,
long mandatedId) |
static Locker |
LockerFactory.getWritableLocker(Environment env,
Transaction userTxn,
boolean isInternalDb,
boolean dbIsTransactional,
boolean autoTxnIsReplicated,
TransactionConfig autoCommitConfig)
Get a locker for a write operation.
|
Txn |
TxnManager.txnBegin(Transaction parent,
TransactionConfig txnConfig)
Create a new transaction.
|
protected void |
Txn.txnBeginHook(TransactionConfig config)
A replicated environment introduces some new considerations when
entering a transaction scope via an Environment.transactionBegin()
operation.
|
| Constructor and Description |
|---|
Txn(EnvironmentImpl envImpl,
TransactionConfig config,
ReplicationContext repContext) |
Txn(EnvironmentImpl envImpl,
TransactionConfig config,
ReplicationContext repContext,
long mandatedId)
A non-zero mandatedId is specified only by subtypes which arbitrarily
impose a transaction id value onto the transaction.
|
| Modifier and Type | Method and Description |
|---|---|
protected TransactionConfig |
PrimaryIndex.getAutoCommitTransactionConfig() |
protected TransactionConfig |
SecondaryIndex.getAutoCommitTransactionConfig() |
Copyright © 2024. All rights reserved.