public class ReactiveFirestoreTransactionManager
extends org.springframework.transaction.reactive.AbstractReactiveTransactionManager
ReactiveTransactionManager
.Constructor and Description |
---|
ReactiveFirestoreTransactionManager(com.google.firestore.v1.FirestoreGrpc.FirestoreStub firestore,
String parent,
FirestoreClassMapper classMapper)
Constructor for ReactiveFirestoreTransactionManager.
|
Modifier and Type | Method and Description |
---|---|
protected reactor.core.publisher.Mono<Void> |
doBegin(org.springframework.transaction.reactive.TransactionSynchronizationManager synchronizationManager,
Object transactionObject,
org.springframework.transaction.TransactionDefinition transactionDefinition) |
protected reactor.core.publisher.Mono<Void> |
doCommit(org.springframework.transaction.reactive.TransactionSynchronizationManager transactionSynchronizationManager,
org.springframework.transaction.reactive.GenericReactiveTransaction genericReactiveTransaction) |
protected Object |
doGetTransaction(org.springframework.transaction.reactive.TransactionSynchronizationManager synchronizationManager) |
protected reactor.core.publisher.Mono<Void> |
doRollback(org.springframework.transaction.reactive.TransactionSynchronizationManager transactionSynchronizationManager,
org.springframework.transaction.reactive.GenericReactiveTransaction genericReactiveTransaction) |
commit, doCleanupAfterCompletion, doResume, doSetRollbackOnly, doSuspend, getReactiveTransaction, isExistingTransaction, prepareForCommit, registerAfterCompletionWithExistingTransaction, rollback
public ReactiveFirestoreTransactionManager(com.google.firestore.v1.FirestoreGrpc.FirestoreStub firestore, String parent, FirestoreClassMapper classMapper)
firestore
- Firestore gRPC stubparent
- the parent resource. For example:
projects/{project_id}/databases/{database_id}/documents orclassMapper
- Firestore class mapperprotected Object doGetTransaction(org.springframework.transaction.reactive.TransactionSynchronizationManager synchronizationManager) throws org.springframework.transaction.TransactionException
doGetTransaction
in class org.springframework.transaction.reactive.AbstractReactiveTransactionManager
org.springframework.transaction.TransactionException
protected reactor.core.publisher.Mono<Void> doBegin(org.springframework.transaction.reactive.TransactionSynchronizationManager synchronizationManager, Object transactionObject, org.springframework.transaction.TransactionDefinition transactionDefinition) throws org.springframework.transaction.TransactionException
doBegin
in class org.springframework.transaction.reactive.AbstractReactiveTransactionManager
org.springframework.transaction.TransactionException
protected reactor.core.publisher.Mono<Void> doCommit(org.springframework.transaction.reactive.TransactionSynchronizationManager transactionSynchronizationManager, org.springframework.transaction.reactive.GenericReactiveTransaction genericReactiveTransaction) throws org.springframework.transaction.TransactionException
doCommit
in class org.springframework.transaction.reactive.AbstractReactiveTransactionManager
org.springframework.transaction.TransactionException
protected reactor.core.publisher.Mono<Void> doRollback(org.springframework.transaction.reactive.TransactionSynchronizationManager transactionSynchronizationManager, org.springframework.transaction.reactive.GenericReactiveTransaction genericReactiveTransaction) throws org.springframework.transaction.TransactionException
doRollback
in class org.springframework.transaction.reactive.AbstractReactiveTransactionManager
org.springframework.transaction.TransactionException
Copyright © 2021. All rights reserved.