public class StreamTransactionOptions extends Object
| Constructor and Description |
|---|
StreamTransactionOptions() |
| Modifier and Type | Method and Description |
|---|---|
StreamTransactionOptions |
allowImplicit(Boolean allowImplicit) |
StreamTransactionOptions |
exclusiveCollections(String... exclusive) |
Boolean |
getAllowImplicit() |
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 Boolean getAllowImplicit()
public StreamTransactionOptions allowImplicit(Boolean allowImplicit)
allowImplicit - Allow reading from undeclared collections.public Long getMaxTransactionSize()
public StreamTransactionOptions maxTransactionSize(Long maxTransactionSize)
maxTransactionSize - Transaction size limit in bytes. Honored by the RocksDB storage engine only.Copyright © 2016–2022 ArangoDB GmbH. All rights reserved.