Package com.arangodb.model
Class TransactionOptions
java.lang.Object
com.arangodb.model.TransactionOptions
- Author:
- Mark Vollmary, Michele Rastelli
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallowImplicit
(Boolean allowImplicit) exclusiveCollections
(String... exclusive) lockTimeout
(Integer lockTimeout) maxTransactionSize
(Long maxTransactionSize) readCollections
(String... read) waitForSync
(Boolean waitForSync) writeCollections
(String... write)
-
Constructor Details
-
TransactionOptions
public TransactionOptions()
-
-
Method Details
-
getCollections
-
getAction
-
getParams
-
params
- Parameters:
params
- optional arguments passed to action- Returns:
- options
-
getLockTimeout
-
lockTimeout
- Parameters:
lockTimeout
- a numeric value that can be used to set a timeout in seconds for waiting on collection locks. This option is only meaningful when using exclusive locks. If not specified, a default value of 900 seconds will be used. Setting lockTimeout to 0 will make ArangoDB not time out waiting for a lock.- Returns:
- options
-
getWaitForSync
-
waitForSync
- Parameters:
waitForSync
- an optional boolean flag that, if set, will force the transaction to write all data to disk before returning- Returns:
- options
-
readCollections
- Parameters:
read
- contains the array of collection-names to be used in the transaction (mandatory) for read- Returns:
- options
-
writeCollections
- Parameters:
write
- contains the array of collection-names to be used in the transaction (mandatory) for write- Returns:
- options
-
exclusiveCollections
- Parameters:
exclusive
- contains the array of collection-names to be used in the transaction (mandatory) for exclusive write- Returns:
- options
- Since:
- ArangoDB 3.4.0
-
allowImplicit
- Parameters:
allowImplicit
- Collections that will be written to in the transaction must be declared with the write attribute or it will fail, whereas non-declared collections from which is solely read will be added lazily. The optional attribute allowImplicit can be set to false to let transactions fail in case of undeclared collections for reading. Collections for reading should be fully declared if possible, to avoid deadlocks.- Returns:
- options
-
getMaxTransactionSize
-
maxTransactionSize
- Parameters:
maxTransactionSize
- Transaction size limit in bytes. Honored by the RocksDB storage engine only.- Returns:
- options
- Since:
- ArangoDB 3.2.0
-