Package com.arangodb.model
Class StreamTransactionOptions
java.lang.Object
com.arangodb.model.StreamTransactionOptions
- Since:
- ArangoDB 3.5.0
- Author:
- Mark Vollmary, Michele Rastelli
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallowDirtyRead
(Boolean allowDirtyRead) allowImplicit
(Boolean allowImplicit) exclusiveCollections
(String... exclusive) lockTimeout
(Integer lockTimeout) maxTransactionSize
(Long maxTransactionSize) readCollections
(String... read) skipFastLockRound
(Boolean skipFastLockRound) waitForSync
(Boolean waitForSync) writeCollections
(String... write)
-
Constructor Details
-
StreamTransactionOptions
public StreamTransactionOptions()
-
-
Method Details
-
getCollections
-
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
-
getAllowImplicit
-
allowImplicit
- Parameters:
allowImplicit
- Allow reading from undeclared collections.- Returns:
- options
-
getMaxTransactionSize
-
maxTransactionSize
- Parameters:
maxTransactionSize
- Transaction size limit in bytes. Honored by the RocksDB storage engine only.- Returns:
- options
-
getAllowDirtyRead
-
allowDirtyRead
- Parameters:
allowDirtyRead
- Set totrue
allows reading from followers in an active-failover setup.- Returns:
- options
- Since:
- ArangoDB 3.4.0
- See Also:
-
getSkipFastLockRound
-
skipFastLockRound
- Parameters:
skipFastLockRound
- Whether to disable fast locking for write operations. Skipping the fast lock round can be faster overall if there are many concurrent Stream Transactions queued that all try to lock the same collection exclusively. It avoids deadlocking and retrying which can occur with the fast locking by guaranteeing a deterministic locking order at the expense of each actual locking operation taking longer. Fast locking should not be skipped for read-only Stream Transactions because it degrades performance if there are no concurrent transactions that use exclusive locks on the same collection. Default:false
- Returns:
- options
- Since:
- ArangoDB 3.12.0
-