Class PollerMetadata
java.lang.Object
org.springframework.integration.scheduling.PollerMetadata
public class PollerMetadata
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
DEFAULT_POLLER
A convenient short alias for the global default poller bean name.static java.lang.String
DEFAULT_POLLER_METADATA_BEAN_NAME
The bean name for global default poller.static long
DEFAULT_RECEIVE_TIMEOUT
The default receive timeout as one second.static int
MAX_MESSAGES_UNBOUNDED
The constant for unlimited number of message to poll in one cycle. -
Constructor Summary
Constructors Constructor Description PollerMetadata()
-
Method Summary
Modifier and Type Method Description java.util.List<org.aopalliance.aop.Advice>
getAdviceChain()
static PollerMetadata
getDefaultPollerMetadata(org.springframework.beans.factory.BeanFactory beanFactory)
Return the defaultPollerMetadata
bean if available.org.springframework.util.ErrorHandler
getErrorHandler()
long
getMaxMessagesPerPoll()
long
getReceiveTimeout()
long
getSendTimeout()
java.util.concurrent.Executor
getTaskExecutor()
TransactionSynchronizationFactory
getTransactionSynchronizationFactory()
org.springframework.scheduling.Trigger
getTrigger()
void
setAdviceChain(java.util.List<org.aopalliance.aop.Advice> adviceChain)
void
setErrorHandler(org.springframework.util.ErrorHandler errorHandler)
void
setMaxMessagesPerPoll(long maxMessagesPerPoll)
Set the maximum number of messages to receive for each poll.void
setReceiveTimeout(long receiveTimeout)
void
setSendTimeout(long sendTimeout)
void
setTaskExecutor(java.util.concurrent.Executor taskExecutor)
void
setTransactionSynchronizationFactory(TransactionSynchronizationFactory transactionSynchronizationFactory)
void
setTrigger(org.springframework.scheduling.Trigger trigger)
-
Field Details
-
MAX_MESSAGES_UNBOUNDED
public static final int MAX_MESSAGES_UNBOUNDEDThe constant for unlimited number of message to poll in one cycle.- See Also:
- Constant Field Values
-
DEFAULT_RECEIVE_TIMEOUT
public static final long DEFAULT_RECEIVE_TIMEOUTThe default receive timeout as one second.- See Also:
- Constant Field Values
-
DEFAULT_POLLER_METADATA_BEAN_NAME
public static final java.lang.String DEFAULT_POLLER_METADATA_BEAN_NAMEThe bean name for global default poller.- See Also:
- Constant Field Values
-
DEFAULT_POLLER
public static final java.lang.String DEFAULT_POLLERA convenient short alias for the global default poller bean name.- See Also:
- Constant Field Values
-
-
Constructor Details
-
PollerMetadata
public PollerMetadata()
-
-
Method Details
-
setTransactionSynchronizationFactory
public void setTransactionSynchronizationFactory(TransactionSynchronizationFactory 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.
- Parameters:
maxMessagesPerPoll
- The maxMessagesPerPoll to set.- 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 defaultPollerMetadata
bean if available.- Parameters:
beanFactory
- BeanFactory for lookup, must not be null.- Returns:
- The poller metadata.
-