public class StreamTransactionOptions extends Object
| Constructor and Description |
|---|
StreamTransactionOptions() |
| Modifier and Type | Method and Description |
|---|---|
StreamTransactionOptions |
allowDirtyRead(Boolean allowDirtyRead) |
StreamTransactionOptions |
allowImplicit(Boolean allowImplicit) |
StreamTransactionOptions |
exclusiveCollections(String... exclusive) |
Boolean |
getAllowDirtyRead() |
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 - 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.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.public Boolean getAllowDirtyRead()
public StreamTransactionOptions allowDirtyRead(Boolean allowDirtyRead)
allowDirtyRead - Set to true allows reading from followers in an active-failover setup.Copyright © 2016–2022 ArangoDB GmbH. All rights reserved.