Class PollerMetadata
java.lang.Object
org.springframework.integration.scheduling.PollerMetadata
- Author:
- Mark Fisher, Oleg Zhurakousky, Gary Russell, Artem Bilan
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final StringA convenient short alias for the global default poller bean name.static final StringThe bean name for global default poller.static final longThe default receive timeout as one second.static final intThe constant for unlimited number of message to poll in one cycle.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic PollerMetadatagetDefaultPollerMetadata(BeanFactory beanFactory) Return the defaultPollerMetadatabean if available.longlonglongDeprecated, for removal: This API element is subject to removal in a future version.voidsetAdviceChain(List<Advice> adviceChain) voidsetErrorHandler(ErrorHandler errorHandler) voidsetMaxMessagesPerPoll(long maxMessagesPerPoll) Set the maximum number of messages to receive for each poll.voidsetReceiveTimeout(long receiveTimeout) voidsetSendTimeout(long sendTimeout) Deprecated, for removal: This API element is subject to removal in a future version.voidsetTaskExecutor(Executor taskExecutor) voidsetTransactionSynchronizationFactory(TransactionSynchronizationFactory transactionSynchronizationFactory) voidsetTrigger(Trigger trigger) 
- 
Field Details- 
MAX_MESSAGES_UNBOUNDEDpublic static final int MAX_MESSAGES_UNBOUNDEDThe constant for unlimited number of message to poll in one cycle.- See Also:
 
- 
DEFAULT_RECEIVE_TIMEOUTpublic static final long DEFAULT_RECEIVE_TIMEOUTThe default receive timeout as one second.- See Also:
 
- 
DEFAULT_POLLER_METADATA_BEAN_NAMEThe bean name for global default poller.- See Also:
 
- 
DEFAULT_POLLERA convenient short alias for the global default poller bean name.- See Also:
 
 
- 
- 
Constructor Details- 
PollerMetadatapublic PollerMetadata()
 
- 
- 
Method Details- 
setTransactionSynchronizationFactorypublic void setTransactionSynchronizationFactory(TransactionSynchronizationFactory transactionSynchronizationFactory) 
- 
getTransactionSynchronizationFactory
- 
setTrigger
- 
getTrigger
- 
getErrorHandler
- 
setErrorHandler
- 
setMaxMessagesPerPollpublic 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:
 
- 
getMaxMessagesPerPollpublic long getMaxMessagesPerPoll()
- 
setReceiveTimeoutpublic void setReceiveTimeout(long receiveTimeout) 
- 
getReceiveTimeoutpublic long getReceiveTimeout()
- 
setAdviceChain
- 
getAdviceChain
- 
setTaskExecutor
- 
getTaskExecutor
- 
getSendTimeoutDeprecated, for removal: This API element is subject to removal in a future version.
- 
setSendTimeoutDeprecated, for removal: This API element is subject to removal in a future version.
- 
getDefaultPollerMetadataReturn the defaultPollerMetadatabean if available.- Parameters:
- beanFactory- BeanFactory for lookup, must not be null.
- Returns:
- The poller metadata.
 
 
-