public class StreamTransactionOptions extends Object
Constructor and Description |
---|
StreamTransactionOptions() |
Modifier and Type | Method and Description |
---|---|
StreamTransactionOptions |
allowImplicit(Boolean allowImplicit) |
StreamTransactionOptions |
exclusiveCollections(String... exclusive) |
Integer |
getLockTimeout() |
Long |
getMaxTransactionSize() |
Boolean |
getWaitForSync() |
StreamTransactionOptions |
lockTimeout(Integer lockTimeout) |
StreamTransactionOptions |
maxTransactionSize(Long maxTransactionSize) |
StreamTransactionOptions |
readCollections(String... read) |
StreamTransactionOptions |
waitForSync(Boolean waitForSync) |
StreamTransactionOptions |
writeCollections(String... write) |
public Integer getLockTimeout()
public StreamTransactionOptions lockTimeout(Integer lockTimeout)
lockTimeout
- an optional numeric value that can be used to set a timeout for waiting on collection locks. If not
specified, a default value will be used. Setting lockTimeout to 0 will make ArangoDB not time out
waiting for a lock.public Boolean getWaitForSync()
public StreamTransactionOptions waitForSync(Boolean waitForSync)
waitForSync
- an optional boolean flag that, if set, will force the transaction to write all data to disk before
returningpublic StreamTransactionOptions readCollections(String... read)
read
- contains the array of collection-names to be used in the transaction (mandatory) for readpublic StreamTransactionOptions writeCollections(String... write)
write
- contains the array of collection-names to be used in the transaction (mandatory) for writepublic StreamTransactionOptions exclusiveCollections(String... exclusive)
exclusive
- contains the array of collection-names to be used in the transaction (mandatory) for exclusive writepublic StreamTransactionOptions allowImplicit(Boolean allowImplicit)
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.public Long getMaxTransactionSize()
public StreamTransactionOptions maxTransactionSize(Long maxTransactionSize)
maxTransactionSize
- Transaction size limit in bytes. Honored by the RocksDB storage engine only.Copyright © 2016–2019 ArangoDB GmbH. All rights reserved.