Class PollerMetadata

java.lang.Object
org.springframework.integration.scheduling.PollerMetadata

public class PollerMetadata extends Object
Author:
Mark Fisher, Oleg Zhurakousky, Gary Russell, Artem Bilan
  • Field Details Link icon

    • MAX_MESSAGES_UNBOUNDED Link icon

      public static final int MAX_MESSAGES_UNBOUNDED
      The constant for unlimited number of message to poll in one cycle.
      See Also:
    • DEFAULT_RECEIVE_TIMEOUT Link icon

      public static final long DEFAULT_RECEIVE_TIMEOUT
      The default receive timeout as one second.
      See Also:
    • DEFAULT_POLLER_METADATA_BEAN_NAME Link icon

      public static final String DEFAULT_POLLER_METADATA_BEAN_NAME
      The bean name for global default poller.
      See Also:
    • DEFAULT_POLLER Link icon

      public static final String DEFAULT_POLLER
      A convenient short alias for the global default poller bean name.
      See Also:
  • Constructor Details Link icon

    • PollerMetadata Link icon

      public PollerMetadata()
  • Method Details Link icon

    • setTransactionSynchronizationFactory Link icon

      public void setTransactionSynchronizationFactory(TransactionSynchronizationFactory transactionSynchronizationFactory)
    • getTransactionSynchronizationFactory Link icon

      public TransactionSynchronizationFactory getTransactionSynchronizationFactory()
    • setTrigger Link icon

      public void setTrigger(Trigger trigger)
    • getTrigger Link icon

      public Trigger getTrigger()
    • getErrorHandler Link icon

      public ErrorHandler getErrorHandler()
    • setErrorHandler Link icon

      public void setErrorHandler(ErrorHandler errorHandler)
    • setMaxMessagesPerPoll Link icon

      public void setMaxMessagesPerPoll(long maxMessagesPerPoll)
      Set the maximum number of messages to receive for each poll. A non-positive value indicates that polling should repeat as long as non-null messages are being received and successfully sent.

      The default is unbounded.

      Parameters:
      maxMessagesPerPoll - The maxMessagesPerPoll to set.
      See Also:
    • getMaxMessagesPerPoll Link icon

      public long getMaxMessagesPerPoll()
    • setReceiveTimeout Link icon

      public void setReceiveTimeout(long receiveTimeout)
    • getReceiveTimeout Link icon

      public long getReceiveTimeout()
    • setAdviceChain Link icon

      public void setAdviceChain(List<Advice> adviceChain)
    • getAdviceChain Link icon

      public List<Advice> getAdviceChain()
    • setTaskExecutor Link icon

      public void setTaskExecutor(Executor taskExecutor)
    • getTaskExecutor Link icon

      public Executor getTaskExecutor()
    • getSendTimeout Link icon

      @Deprecated(forRemoval=true, since="6.3.9") public long getSendTimeout()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setSendTimeout Link icon

      @Deprecated(forRemoval=true, since="6.3.9") public void setSendTimeout(long sendTimeout)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getDefaultPollerMetadata Link icon

      public static PollerMetadata getDefaultPollerMetadata(BeanFactory beanFactory)
      Return the default PollerMetadata bean if available.
      Parameters:
      beanFactory - BeanFactory for lookup, must not be null.
      Returns:
      The poller metadata.