| Apache Ignite C++

core/include/ignite/transactions/transaction_consts.h
Go to the documentation of this file.
1 /*
2 * Licensed to the Apache Software Foundation (ASF) under one or more
3 * contributor license agreements. See the NOTICE file distributed with
4 * this work for additional information regarding copyright ownership.
5 * The ASF licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
7 * the License. You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
17
23 #ifndef _IGNITE_TRANSACTIONS_TRANSACTION_CONSTS
24 #define _IGNITE_TRANSACTIONS_TRANSACTION_CONSTS
25
26 namespace ignite
27 {
28 namespace transactions
29 {
33 struct TransactionConcurrency
34 {
35 enum Type
36 {
51 OPTIMISTIC = 0,
52
64 PESSIMISTIC = 1
65 };
66 };
67
71 struct TransactionIsolation
72 {
73 enum Type
74 {
85 READ_COMMITTED = 0,
86
98 REPEATABLE_READ = 1,
99
111 SERIALIZABLE = 2
112 };
113 };
114
118 struct TransactionState
119 {
120 enum Type
121 {
123 ACTIVE,
124
126 PREPARING,
127
129 PREPARED,
130
132 MARKED_ROLLBACK,
133
135 COMMITTING,
136
138 COMMITTED,
139
141 ROLLING_BACK,
142
144 ROLLED_BACK,
145
147 UNKNOWN
148 };
149 };
150 }
151 }
152
153 #endif //_IGNITE_TRANSACTIONS_TRANSACTION_CONSTS
ignite::transactions::TransactionIsolation::SERIALIZABLE
@ SERIALIZABLE
Serializable isolation level.
Definition: core/include/ignite/transactions/transaction_consts.h:111
ignite
Apache Ignite API.
Definition: cache.h:48
ignite::transactions::TransactionConcurrency::OPTIMISTIC
@ OPTIMISTIC
Optimistic concurrency model.
Definition: core/include/ignite/transactions/transaction_consts.h:51
ignite::transactions::TransactionIsolation::REPEATABLE_READ
@ REPEATABLE_READ
Repeatable read isolation level.
Definition: core/include/ignite/transactions/transaction_consts.h:98
ignite::transactions::TransactionState::ACTIVE
@ ACTIVE
Transaction started.
Definition: core/include/ignite/transactions/transaction_consts.h:123
ignite::transactions::TransactionIsolation
Defines different cache transaction isolation levels.
Definition: core/include/ignite/transactions/transaction_consts.h:71
ignite::transactions::TransactionState::Type
Type
Definition: core/include/ignite/transactions/transaction_consts.h:120
ignite::transactions::TransactionState::COMMITTING
@ COMMITTING
Transaction commit started (validating finished).
Definition: core/include/ignite/transactions/transaction_consts.h:135
ignite::transactions::TransactionState::PREPARING
@ PREPARING
Transaction validating.
Definition: core/include/ignite/transactions/transaction_consts.h:126
ignite::transactions::TransactionState::ROLLED_BACK
@ ROLLED_BACK
Transaction rollback succeeded.
Definition: core/include/ignite/transactions/transaction_consts.h:144
ignite::transactions::TransactionConcurrency
Transaction concurrency control model.
Definition: core/include/ignite/transactions/transaction_consts.h:33
ignite::transactions::TransactionState::MARKED_ROLLBACK
@ MARKED_ROLLBACK
Transaction is marked for rollback.
Definition: core/include/ignite/transactions/transaction_consts.h:132
ignite::transactions::TransactionConcurrency::Type
Type
Definition: core/include/ignite/transactions/transaction_consts.h:35
ignite::transactions::TransactionState
Cache transaction state.
Definition: core/include/ignite/transactions/transaction_consts.h:118
ignite::transactions::TransactionConcurrency::PESSIMISTIC
@ PESSIMISTIC
Pessimistic concurrency model.
Definition: core/include/ignite/transactions/transaction_consts.h:64
ignite::transactions::TransactionState::PREPARED
@ PREPARED
Transaction validation succeeded.
Definition: core/include/ignite/transactions/transaction_consts.h:129
ignite::transactions::TransactionState::COMMITTED
@ COMMITTED
Transaction commit succeeded.
Definition: core/include/ignite/transactions/transaction_consts.h:138
ignite::transactions::TransactionIsolation::READ_COMMITTED
@ READ_COMMITTED
Read committed isolation level.
Definition: core/include/ignite/transactions/transaction_consts.h:85
ignite::transactions::TransactionState::ROLLING_BACK
@ ROLLING_BACK
Transaction rollback started (validation failed).
Definition: core/include/ignite/transactions/transaction_consts.h:141
ignite::transactions::TransactionIsolation::Type
Type
Definition: core/include/ignite/transactions/transaction_consts.h:73
ignite::transactions::TransactionState::UNKNOWN
@ UNKNOWN
Transaction rollback failed or is otherwise unknown state.
Definition: core/include/ignite/transactions/transaction_consts.h:147