/** * Specify a {@link TransactionInterceptor} {@link Advice} with default {@code PlatformTransactionManager} * and {@link DefaultTransactionAttribute} for the {@code pollingTask}. * @return the spec. * @since 1.2 */ public S transactional() { return transactional(false); }
/** * Specify a {@link TransactionInterceptor} {@link Advice} with the * provided {@code PlatformTransactionManager} and default {@link DefaultTransactionAttribute} * for the {@code pollingTask}. * @param transactionManager the {@link PlatformTransactionManager} to use. * @return the spec. * @since 1.2 */ public S transactional(PlatformTransactionManager transactionManager) { return transactional(transactionManager, false); }
/** * Specify a {@link TransactionInterceptor} {@link Advice} with default {@code PlatformTransactionManager} * and {@link DefaultTransactionAttribute} for the {@code pollingTask}. * @return the spec. * @since 1.2 */ public S transactional() { return transactional(false); }
/** * Specify a {@link TransactionInterceptor} {@link Advice} with the * provided {@code PlatformTransactionManager} and default {@link DefaultTransactionAttribute} * for the {@code pollingTask}. * @param transactionManager the {@link PlatformTransactionManager} to use. * @return the spec. * @since 1.2 */ public S transactional(PlatformTransactionManager transactionManager) { return transactional(transactionManager, false); }
/** * Specify a {@link TransactionInterceptor} {@link Advice} with default {@code PlatformTransactionManager} * and {@link DefaultTransactionAttribute} for the {@code pollingTask}. * @param handleMessageAdvice the flag to indicate the target {@link Advice} type: * {@code false} - regular {@link TransactionInterceptor}; * {@code true} - {@link TransactionHandleMessageAdvice} extension. * @return the spec. * @since 1.2 */ public S transactional(boolean handleMessageAdvice) { TransactionInterceptor transactionInterceptor = new TransactionInterceptorBuilder(handleMessageAdvice).build(); this.componentToRegister.add(transactionInterceptor); return transactional(transactionInterceptor); }
/** * Specify a {@link TransactionInterceptor} {@link Advice} with default {@code PlatformTransactionManager} * and {@link DefaultTransactionAttribute} for the {@code pollingTask}. * @param handleMessageAdvice the flag to indicate the target {@link Advice} type: * {@code false} - regular {@link TransactionInterceptor}; * {@code true} - {@link TransactionHandleMessageAdvice} extension. * @return the spec. * @since 1.2 */ public S transactional(boolean handleMessageAdvice) { TransactionInterceptor transactionInterceptor = new TransactionInterceptorBuilder(handleMessageAdvice).build(); this.componentToRegister.add(transactionInterceptor); return transactional(transactionInterceptor); }
/** * Specify a {@link TransactionInterceptor} {@link Advice} with the * provided {@code PlatformTransactionManager} and default {@link DefaultTransactionAttribute} * for the {@code pollingTask}. * @param transactionManager the {@link PlatformTransactionManager} to use. * @param handleMessageAdvice the flag to indicate the target {@link Advice} type: * {@code false} - regular {@link TransactionInterceptor}; * {@code true} - {@link TransactionHandleMessageAdvice} extension. * @return the spec. * @since 1.2 */ public S transactional(PlatformTransactionManager transactionManager, boolean handleMessageAdvice) { return transactional(new TransactionInterceptorBuilder(handleMessageAdvice) .transactionManager(transactionManager) .build()); }
/** * Specify a {@link TransactionInterceptor} {@link Advice} with the * provided {@code PlatformTransactionManager} and default {@link DefaultTransactionAttribute} * for the {@code pollingTask}. * @param transactionManager the {@link PlatformTransactionManager} to use. * @param handleMessageAdvice the flag to indicate the target {@link Advice} type: * {@code false} - regular {@link TransactionInterceptor}; * {@code true} - {@link TransactionHandleMessageAdvice} extension. * @return the spec. * @since 1.2 */ public S transactional(PlatformTransactionManager transactionManager, boolean handleMessageAdvice) { return transactional(new TransactionInterceptorBuilder(handleMessageAdvice) .transactionManager(transactionManager) .build()); }