5
5
* you may not use this file except in compliance with the License.
6
6
* You may obtain a copy of the License at
7
7
*
8
- * http ://www.apache.org/licenses/LICENSE-2.0
8
+ * https ://www.apache.org/licenses/LICENSE-2.0
9
9
*
10
10
* Unless required by applicable law or agreed to in writing, software
11
11
* distributed under the License is distributed on an "AS IS" BASIS,
16
16
17
17
package org .springframework .transaction ;
18
18
19
- import reactor .core .publisher .Mono ;
20
-
21
19
/**
22
20
* Representation of the status of a transaction exposing a reactive
23
21
* interface.
27
25
* an exception that causes an implicit rollback).
28
26
*
29
27
* @author Mark Paluch
28
+ * @author Juergen Hoeller
30
29
* @since 5.2
31
30
* @see #setRollbackOnly()
32
31
* @see ReactiveTransactionManager#getTransaction
@@ -45,10 +44,10 @@ public interface ReactiveTransactionStatus {
45
44
* that the only possible outcome of the transaction may be a rollback, as
46
45
* alternative to throwing an exception which would in turn trigger a rollback.
47
46
* <p>This is mainly intended for transactions managed by
48
- * {@link org.springframework.transaction.reactive.support. TransactionalOperator} or
49
- * {@link org.springframework.transaction.interceptor.ReactiveTransactionInterceptor },
47
+ * {@link org.springframework.transaction.reactive.TransactionalOperator} or
48
+ * {@link org.springframework.transaction.interceptor.TransactionInterceptor },
50
49
* where the actual commit/rollback decision is made by the container.
51
- * @see org.springframework.transaction.reactive.support. ReactiveTransactionCallback#doInTransaction
50
+ * @see org.springframework.transaction.reactive.ReactiveTransactionCallback#doInTransaction
52
51
* @see org.springframework.transaction.interceptor.TransactionAttribute#rollbackOn
53
52
*/
54
53
void setRollbackOnly ();
@@ -59,20 +58,12 @@ public interface ReactiveTransactionStatus {
59
58
*/
60
59
boolean isRollbackOnly ();
61
60
62
- /**
63
- * Flush the underlying session to the datastore, if applicable.
64
- * <p>This is effectively just a hint and may be a no-op if the underlying
65
- * transaction manager does not have a flush concept. A flush signal may
66
- * get applied to the primary resource or to transaction synchronizations,
67
- * depending on the underlying resource.
68
- */
69
- Mono <Void > flush ();
70
-
71
61
/**
72
62
* Return whether this transaction is completed, that is,
73
63
* whether it has already been committed or rolled back.
74
64
* @see ReactiveTransactionManager#commit
75
65
* @see ReactiveTransactionManager#rollback
76
66
*/
77
67
boolean isCompleted ();
68
+
78
69
}
0 commit comments