Java Code Examples for org.springframework.transaction.reactive.TransactionSynchronizationManager#getResource()
The following examples show how to use
org.springframework.transaction.reactive.TransactionSynchronizationManager#getResource() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ReactiveNeo4jTransactionManager.java From sdn-rx with Apache License 2.0 | 5 votes |
@Override protected Object doGetTransaction(TransactionSynchronizationManager transactionSynchronizationManager) throws TransactionException { ReactiveNeo4jTransactionHolder resourceHolder = (ReactiveNeo4jTransactionHolder) transactionSynchronizationManager .getResource(driver); return new ReactiveNeo4jTransactionObject(resourceHolder); }
Example 2
Source File: ReactiveFirestoreTransactionManager.java From spring-cloud-gcp with Apache License 2.0 | 5 votes |
@Override protected Object doGetTransaction(TransactionSynchronizationManager synchronizationManager) throws TransactionException { ReactiveFirestoreResourceHolder resourceHolder = (ReactiveFirestoreResourceHolder) synchronizationManager .getResource(this.firestore); return new ReactiveFirestoreTransactionObject(resourceHolder); }
Example 3
Source File: ReactiveRedissonTransactionManager.java From redisson with Apache License 2.0 | 5 votes |
@Override protected Object doGetTransaction(TransactionSynchronizationManager synchronizationManager) throws TransactionException { ReactiveRedissonTransactionObject transactionObject = new ReactiveRedissonTransactionObject(); ReactiveRedissonResourceHolder holder = (ReactiveRedissonResourceHolder) synchronizationManager.getResource(redissonClient); transactionObject.setResourceHolder(holder); return transactionObject; }