Auki::ConjureKit::Domains::BatchResultMode
Public Types
Name | |
---|---|
enum class | BatchResultMode { BestEffort = 0, Transaction = 1} This enum specifies the behaviour for batch operations. |
Public Types Documentation
enum BatchResultMode
Enumerator | Value | Description |
---|---|---|
BestEffort | 0 | Error will be returned only if the request itself fails. If the request involves a list of items as a result, it will succeed whenever any number of items is returned (including 0). The caller is responsible to determine from result which requested items succeeded, so you might want to repeat the request for the failed items at a later time. ONLY if all items succeed, result will reflect the same input list order, where order is given. If some items fail, they will not be present in such list. If the request involves changes, the succeeded changes will be kept, only the failed ones will be reverted. |
Transaction | 1 | Error will be returned only if any of the operations fail or the request itself fails. If the request involves a list of items as a result, it will succeed only when all items succeed. Error is returned whenever one item fails or the request itself has failed. Returned items on success will ALWAYS reflect the same input list order, where order is given. If the request involves changes, in case of any failed change the whole operation is reverted, bringing back the status before the request was performed. |
This enum specifies the behaviour for batch operations.