S - the target JmsPollableMessageChannelSpec implementation type.public class JmsPollableMessageChannelSpec<S extends JmsPollableMessageChannelSpec<S,T>,T extends AbstractJmsChannel> extends MessageChannelSpec<S,T>
MessageChannelSpec for an AbstractJmsChannel.| Modifier and Type | Field and Description |
|---|---|
protected JmsChannelFactoryBean |
jmsChannelFactoryBean |
channelPARSER, targetloggerDEFAULT_PHASEOBJECT_TYPE_ATTRIBUTE| Modifier | Constructor and Description |
|---|---|
protected |
JmsPollableMessageChannelSpec(ConnectionFactory connectionFactory) |
protected |
JmsPollableMessageChannelSpec(JmsChannelFactoryBean jmsChannelFactoryBean,
ConnectionFactory connectionFactory) |
| Modifier and Type | Method and Description |
|---|---|
S |
deliveryPersistent(boolean deliveryPersistent) |
S |
destination(Destination destination)
Configure the destination that backs this channel.
|
S |
destination(String destination)
Configure the destination name that backs this channel.
|
S |
destinationResolver(DestinationResolver destinationResolver) |
protected T |
doGet() |
S |
explicitQosEnabled(boolean explicitQosEnabled) |
protected S |
id(String id)
Configure the component identifier.
|
S |
jmsMessageConverter(MessageConverter messageConverter)
Configure the
MessageConverter used for both sending and
receiving. |
S |
messageIdEnabled(boolean messageIdEnabled) |
S |
messageSelector(String messageSelector)
Configure a message selector in the
DefaultMessageListenerContainer (when message driven)
or the JmsTemplate (when polled). |
S |
messageTimestampEnabled(boolean messageTimestampEnabled) |
S |
priority(int priority)
Default priority.
|
S |
receiveTimeout(long receiveTimeout) |
S |
sessionAcknowledgeMode(int sessionAcknowledgeMode) |
S |
sessionTransacted(boolean sessionTransacted)
Configure transactional sessions for both the
JmsTemplate (sends and polled receives) and
DefaultMessageListenerContainer
(message-driven receives). |
S |
timeToLive(long timeToLive) |
datatype, getComponentsToRegister, interceptor, messageConverter, wireTap, wireTap, wireTap_this, createInstance, destroyInstance, get, getId, getObjectType, getPhase, isAutoStartup, isRunning, start, stop, stopafterPropertiesSet, destroy, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingletonprotected final JmsChannelFactoryBean jmsChannelFactoryBean
protected JmsPollableMessageChannelSpec(ConnectionFactory connectionFactory)
protected JmsPollableMessageChannelSpec(JmsChannelFactoryBean jmsChannelFactoryBean, ConnectionFactory connectionFactory)
protected S id(@Nullable String id)
IntegrationComponentSpecbeanName to register the
bean in the application context for this component.id in class IntegrationComponentSpec<S extends JmsPollableMessageChannelSpec<S,T>,T extends AbstractJmsChannel>id - the id.public S destination(String destination)
destination - the destination.MessageChannelSpec.public S destinationResolver(DestinationResolver destinationResolver)
destinationResolver - the destinationResolver.MessageChannelSpec.JmsDestinationAccessor.setDestinationResolver(DestinationResolver),
JmsDestinationAccessor.setDestinationResolver(DestinationResolver)public S destination(Destination destination)
destination - the destination.MessageChannelSpec.public S messageSelector(String messageSelector)
DefaultMessageListenerContainer (when message driven)
or the JmsTemplate (when polled).messageSelector - the messageSelector.MessageChannelSpec.AbstractMessageListenerContainer.setMessageSelector(String),
JmsTemplate.receiveSelectedAndConvert(String)public S jmsMessageConverter(MessageConverter messageConverter)
MessageConverter used for both sending and
receiving.messageConverter - the messageConverter.MessageChannelSpec.JmsTemplate.setMessageConverter(MessageConverter)public S deliveryPersistent(boolean deliveryPersistent)
deliveryPersistent - the deliveryPersistent.MessageChannelSpec.JmsTemplate.setDeliveryPersistent(boolean)public S explicitQosEnabled(boolean explicitQosEnabled)
explicitQosEnabled - the explicitQosEnabled.MessageChannelSpec.JmsTemplate.setExplicitQosEnabled(boolean)public S messageIdEnabled(boolean messageIdEnabled)
messageIdEnabled - the messageIdEnabled.MessageChannelSpec.JmsTemplate.setMessageIdEnabled(boolean)public S messageTimestampEnabled(boolean messageTimestampEnabled)
messageTimestampEnabled - the messageTimestampEnabled.MessageChannelSpec.JmsTemplate.setMessageTimestampEnabled(boolean)public S priority(int priority)
priority - the priority.MessageChannelSpec.JmsTemplate.setPriority(int)public S timeToLive(long timeToLive)
timeToLive - the timeToLive.MessageChannelSpec.JmsTemplate.setTimeToLive(long)public S receiveTimeout(long receiveTimeout)
receiveTimeout - the receiveTimeout.MessageChannelSpec.JmsTemplate.setReceiveTimeout(long),
AbstractPollingMessageListenerContainer.setReceiveTimeout(long)public S sessionAcknowledgeMode(int sessionAcknowledgeMode)
sessionAcknowledgeMode - the acknowledgement mode constantMessageChannelSpec.etc.public S sessionTransacted(boolean sessionTransacted)
JmsTemplate (sends and polled receives) and
DefaultMessageListenerContainer
(message-driven receives).sessionTransacted - the sessionTransacted.MessageChannelSpec.protected T doGet()
doGet in class MessageChannelSpec<S extends JmsPollableMessageChannelSpec<S,T>,T extends AbstractJmsChannel>