/** * @return the configured component. */ public final T get() { if (this.target == null) { this.target = doGet(); } return this.target; }
/** * 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); }
/** * Configure the component identifier. Used as the {@code beanName} to register the * bean in the application context for this component. * @param id the id. * @return the spec. */ protected S id(String id) { this.id = id; return _this(); }
/** * @param pollers the pollers * @return the endpoint spec. * @see AbstractPollingEndpoint * @see PollerFactory */ public S poller(Function<PollerFactory, PollerSpec> pollers) { return poller(pollers.apply(new PollerFactory())); }
public static PollerSpec fixedRate(long period, TimeUnit timeUnit) { return fixedRate(period, timeUnit, 0); } public static PollerSpec fixedRate(long period, long initialDelay) {
/** * Specify a {@link TransactionInterceptor} {@link Advice} for the {@code pollingTask}. * @param transactionInterceptor the {@link TransactionInterceptor} to use. * @return the spec. * @since 1.2 * @see TransactionInterceptorBuilder */ public PollerSpec transactional(TransactionInterceptor transactionInterceptor) { return advice(transactionInterceptor); }
/** * Specify a {@link TransactionInterceptor} {@link Advice} for the {@code pollingTask}. * @param transactionInterceptor the {@link TransactionInterceptor} to use. * @return the spec. * @since 1.2 * @see TransactionInterceptorBuilder */ public S transactional(TransactionInterceptor transactionInterceptor) { return advice(transactionInterceptor); }
@Override protected S id(String id) { return super.id(id); }
@Override public T getObject() throws Exception { return get(); }
/** * @param pollers the pollers * @return the endpoint spec. * @see AbstractPollingEndpoint * @see PollerFactory */ public S poller(Function<PollerFactory, PollerSpec> pollers) { return poller(pollers.apply(new PollerFactory())); }
public static PollerSpec fixedRate(long period, TimeUnit timeUnit) { return fixedRate(period, timeUnit, 0); } public static PollerSpec fixedRate(long period, long initialDelay) {
/** * 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); }
/** * @return the configured component. */ public final T get() { if (this.target == null) { this.target = doGet(); } return this.target; }
/** * Configure the component identifier. Used as the {@code beanName} to register the * bean in the application context for this component. * @param id the id. * @return the spec. */ protected S id(String id) { this.id = id; return _this(); }
/** * Specify a {@link TransactionInterceptor} {@link Advice} for the {@code pollingTask}. * @param transactionInterceptor the {@link TransactionInterceptor} to use. * @return the spec. * @since 1.2 * @see TransactionInterceptorBuilder */ public PollerSpec transactional(TransactionInterceptor transactionInterceptor) { return advice(transactionInterceptor); }
/** * Specify a {@link TransactionInterceptor} {@link Advice} for the {@code pollingTask}. * @param transactionInterceptor the {@link TransactionInterceptor} to use. * @return the spec. * @since 1.2 * @see TransactionInterceptorBuilder */ public S transactional(TransactionInterceptor transactionInterceptor) { return advice(transactionInterceptor); }
@Override protected S id(String id) { return super.id(id); }
@Override public T getObject() throws Exception { return get(); }
/** * 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); }