Package | Description |
---|---|
com.sleepycat.client | |
com.sleepycat.client.collections |
Data access based on the standard Java collections API.
|
Modifier and Type | Method and Description |
---|---|
STransactionConfig |
STransactionConfig.setBulk(boolean bulk)
Configures the transaction to enable the transactional bulk insert
optimization.
|
STransactionConfig |
STransactionConfig.setNoSync(boolean noSync)
Configure the transaction to not write or synchronously flush the log
when it commits.
|
STransactionConfig |
STransactionConfig.setNoWait(boolean noWait)
Configure the transaction to not wait if a lock request cannot be
immediately granted.
|
STransactionConfig |
STransactionConfig.setReadCommitted(boolean readCommitted)
Configure the transaction for read committed isolation.
|
STransactionConfig |
STransactionConfig.setReadUncommitted(boolean readUncommitted)
Configure read operations performed by the transaction to return
modified
but not yet committed data.
|
STransactionConfig |
STransactionConfig.setSnapshot(boolean snapshot)
This transaction will execute with snapshot isolation.
|
STransactionConfig |
STransactionConfig.setSync(boolean sync)
Configure the transaction to write and synchronously flush the log
when it commits.
|
STransactionConfig |
STransactionConfig.setWait(boolean wait)
Configure the transaction to wait if a lock request cannot be
immediately granted.
|
STransactionConfig |
STransactionConfig.setWriteNoSync(boolean writeNoSync)
Configure the transaction to write but not synchronously flush the log
when it commits.
|
Modifier and Type | Method and Description |
---|---|
STransaction |
SEnvironment.beginTransaction(STransaction parent,
STransactionConfig config)
Create a new transaction in the database environment.
|
Modifier and Type | Method and Description |
---|---|
STransactionConfig |
TransactionRunner.getTransactionConfig()
Returns the transaction configuration used for calling
SEnvironment.beginTransaction(com.sleepycat.client.STransaction, com.sleepycat.client.STransactionConfig) . |
Modifier and Type | Method and Description |
---|---|
STransaction |
CurrentTransaction.beginTransaction(STransactionConfig config)
Begins a new transaction for this environment and associates it with
the current thread.
|
void |
TransactionRunner.setTransactionConfig(STransactionConfig config)
Changes the transaction configuration used for calling
SEnvironment.beginTransaction(com.sleepycat.client.STransaction, com.sleepycat.client.STransactionConfig) . |
Constructor and Description |
---|
TransactionRunner(SEnvironment env,
int maxRetries,
STransactionConfig config)
Creates a transaction runner for a given Berkeley DB environment and
with a given number of maximum retries.
|
Copyright (c) 2016, 2019 Oracle and/or its affiliates. All rights reserved.