/** * Specify a {@link TransactionInterceptor} {@link Advice} with default {@code PlatformTransactionManager} * and {@link DefaultTransactionAttribute} for the {@code pollingTask}. * @return the spec. * @since 1.2 */ public PollerSpec transactional() { TransactionInterceptor transactionInterceptor = new TransactionInterceptorBuilder().build(); this.componentsToRegister.add(transactionInterceptor); return transactional(transactionInterceptor); }
/** * Specify a {@link TransactionInterceptor} {@link Advice} with default {@code PlatformTransactionManager} * and {@link DefaultTransactionAttribute} for the {@code pollingTask}. * @return the spec. * @since 1.2 */ public PollerSpec transactional() { TransactionInterceptor transactionInterceptor = new TransactionInterceptorBuilder().build(); this.componentsToRegister.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. * @return the spec. */ public PollerSpec transactional(PlatformTransactionManager transactionManager) { return transactional(new TransactionInterceptorBuilder() .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. * @return the spec. */ public PollerSpec transactional(PlatformTransactionManager transactionManager) { return transactional(new TransactionInterceptorBuilder() .transactionManager(transactionManager) .build()); }