org.springframework.integration.scheduling
Class PollerMetadata
java.lang.Object
org.springframework.integration.scheduling.PollerMetadata
public class PollerMetadata
- extends java.lang.Object
- Author:
- Mark Fisher, Oleg Zhurakousky, Gary Russell
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MAX_MESSAGES_UNBOUNDED
public static final int MAX_MESSAGES_UNBOUNDED
- See Also:
- Constant Field Values
DEFAULT_POLLER_METADATA_BEAN_NAME
public static final java.lang.String DEFAULT_POLLER_METADATA_BEAN_NAME
- See Also:
- Constant Field Values
PollerMetadata
public PollerMetadata()
setTransactionSynchronizationFactory
public void setTransactionSynchronizationFactory(TransactionSynchronizationFactory transactionSynchronizationFactory)
getTransactionSynchronizationFactory
public TransactionSynchronizationFactory getTransactionSynchronizationFactory()
setTrigger
public void setTrigger(org.springframework.scheduling.Trigger trigger)
getTrigger
public org.springframework.scheduling.Trigger getTrigger()
getErrorHandler
public org.springframework.util.ErrorHandler getErrorHandler()
setErrorHandler
public void setErrorHandler(org.springframework.util.ErrorHandler errorHandler)
setMaxMessagesPerPoll
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.
- See Also:
MAX_MESSAGES_UNBOUNDED
getMaxMessagesPerPoll
public long getMaxMessagesPerPoll()
setReceiveTimeout
public void setReceiveTimeout(long receiveTimeout)
getReceiveTimeout
public long getReceiveTimeout()
setAdviceChain
public void setAdviceChain(java.util.List<org.aopalliance.aop.Advice> adviceChain)
getAdviceChain
public java.util.List<org.aopalliance.aop.Advice> getAdviceChain()
setTaskExecutor
public void setTaskExecutor(java.util.concurrent.Executor taskExecutor)
getTaskExecutor
public java.util.concurrent.Executor getTaskExecutor()
getSendTimeout
public long getSendTimeout()
setSendTimeout
public void setSendTimeout(long sendTimeout)
getDefaultPollerMetadata
public static PollerMetadata getDefaultPollerMetadata(org.springframework.beans.factory.BeanFactory beanFactory)
- Return the default
PollerMetadata
bean if available.
- Parameters:
beanFactory
- BeanFactory for lookup, must not be null.