Class CouchbaseTransactionInterceptor

All Implemented Interfaces:
Serializable, Advice, Interceptor, MethodInterceptor, Aware, BeanFactoryAware, InitializingBean

@Internal public class CouchbaseTransactionInterceptor extends TransactionInterceptor implements MethodInterceptor, Serializable
This allows reactive @Transactional support with Couchbase transactions.

The ReactiveTransactionManager does not support the lambda-based nature of Couchbase transactions, and there is no reactive equivalent of CallbackPreferringTransactionManager (which does).

The solution: override the standard TransactionInterceptor and, if the CouchbaseCallbackTransactionManager is the provided TransactionManager, defer to that.

Author:
Graham Pople, Michael Reiche
See Also: