public class TransactionOptions extends Object
Modifier and Type | Class and Description |
---|---|
static class |
TransactionOptions.TransactionCollectionOptions |
Constructor and Description |
---|
TransactionOptions() |
Modifier and Type | Method and Description |
---|---|
protected TransactionOptions |
action(String action) |
TransactionOptions |
allowImplicit(Boolean allowImplicit) |
protected String |
getAction() |
Integer |
getLockTimeout() |
Object |
getParams() |
Boolean |
getWaitForSync() |
TransactionOptions |
lockTimeout(Integer lockTimeout) |
TransactionOptions |
params(Object params) |
TransactionOptions |
readCollections(String... read) |
TransactionOptions |
waitForSync(Boolean waitForSync) |
TransactionOptions |
writeCollections(String... write) |
protected String getAction()
protected TransactionOptions action(String action)
action
- the actual transaction operations to be executed, in the form of stringified JavaScript codepublic Object getParams()
public TransactionOptions params(Object params)
params
- optional arguments passed to actionpublic Integer getLockTimeout()
public TransactionOptions 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 TransactionOptions waitForSync(Boolean waitForSync)
waitForSync
- an optional boolean flag that, if set, will force the transaction to write all data to disk before
returningpublic TransactionOptions readCollections(String... read)
read
- contains the array of collection-names to be used in the transaction (mandatory) for readpublic TransactionOptions writeCollections(String... write)
write
- contains the array of collection-names to be used in the transaction (mandatory) for writepublic TransactionOptions allowImplicit(Boolean allowImplicit)
Copyright © 2016 ArangoDB GmbH. All rights reserved.