Class JmsListenerContainerSpec<S extends JmsListenerContainerSpec<S,​C>,​C extends org.springframework.jms.listener.AbstractMessageListenerContainer>

java.lang.Object
org.springframework.beans.factory.config.AbstractFactoryBean<T>
org.springframework.integration.dsl.IntegrationComponentSpec<S,​A>
org.springframework.integration.jms.dsl.JmsDestinationAccessorSpec<S,​C>
org.springframework.integration.jms.dsl.JmsListenerContainerSpec<S,​C>
Type Parameters:
S - the target JmsListenerContainerSpec implementation type.
C - the target AbstractMessageListenerContainer implementation type.
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.FactoryBean<C>, org.springframework.beans.factory.InitializingBean, org.springframework.context.Lifecycle, org.springframework.context.Phased, org.springframework.context.SmartLifecycle
Direct Known Subclasses:
JmsDefaultListenerContainerSpec

public class JmsListenerContainerSpec<S extends JmsListenerContainerSpec<S,​C>,​C extends org.springframework.jms.listener.AbstractMessageListenerContainer>
extends JmsDestinationAccessorSpec<S,​C>
Since:
5.0
  • Field Summary

    Fields inherited from class org.springframework.integration.dsl.IntegrationComponentSpec

    PARSER, target

    Fields inherited from class org.springframework.beans.factory.config.AbstractFactoryBean

    logger

    Fields inherited from interface org.springframework.beans.factory.FactoryBean

    OBJECT_TYPE_ATTRIBUTE

    Fields inherited from interface org.springframework.context.SmartLifecycle

    DEFAULT_PHASE
  • Constructor Summary

    Constructors 
    Modifier Constructor Description
    protected JmsListenerContainerSpec​(java.lang.Class<C> aClass)  
  • Method Summary

    Modifier and Type Method Description
    S acceptMessagesWhileStopping​(boolean acceptMessagesWhileStopping)  
    S clientId​(java.lang.String clientId)  
    S durableSubscriptionName​(java.lang.String durableSubscriptionName)  
    S errorHandler​(org.springframework.util.ErrorHandler errorHandler)  
    S exceptionListener​(javax.jms.ExceptionListener exceptionListener)  
    S exposeListenerSession​(boolean exposeListenerSession)  
    S messageSelector​(java.lang.String messageSelector)  
    S subscriptionDurable​(boolean subscriptionDurable)  
    S subscriptionShared​(boolean subscriptionShared)
    Set whether to make the subscription shared.

    Methods inherited from class org.springframework.integration.dsl.IntegrationComponentSpec

    _this, createInstance, destroyInstance, doGet, get, getId, getObjectType, getPhase, isAutoStartup, isRunning, start, stop, stop

    Methods inherited from class org.springframework.beans.factory.config.AbstractFactoryBean

    afterPropertiesSet, destroy, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • messageSelector

      public S messageSelector​(java.lang.String messageSelector)
      Parameters:
      messageSelector - the messageSelector.
      Returns:
      the spec.
      See Also:
      AbstractMessageListenerContainer.setMessageSelector(String)
    • subscriptionDurable

      public S subscriptionDurable​(boolean subscriptionDurable)
      Parameters:
      subscriptionDurable - the subscriptionDurable.
      Returns:
      the spec.
      See Also:
      AbstractMessageListenerContainer.setSubscriptionDurable(boolean)
    • durableSubscriptionName

      public S durableSubscriptionName​(java.lang.String durableSubscriptionName)
      Parameters:
      durableSubscriptionName - the durableSubscriptionName.
      Returns:
      the spec.
      See Also:
      AbstractMessageListenerContainer.setDurableSubscriptionName(String)
    • subscriptionShared

      public S subscriptionShared​(boolean subscriptionShared)
      Set whether to make the subscription shared.
      Parameters:
      subscriptionShared - make the subscription shared or not.
      Returns:
      the spec.
      Since:
      5.0.7
      See Also:
      AbstractMessageListenerContainer.setSubscriptionShared(boolean)
    • exceptionListener

      public S exceptionListener​(javax.jms.ExceptionListener exceptionListener)
      Parameters:
      exceptionListener - the exceptionListener.
      Returns:
      the spec.
      See Also:
      AbstractMessageListenerContainer.setExceptionListener(ExceptionListener)
    • errorHandler

      public S errorHandler​(org.springframework.util.ErrorHandler errorHandler)
      Parameters:
      errorHandler - the errorHandler.
      Returns:
      the spec.
      See Also:
      AbstractMessageListenerContainer.setErrorHandler(ErrorHandler)
    • exposeListenerSession

      public S exposeListenerSession​(boolean exposeListenerSession)
      Parameters:
      exposeListenerSession - the exposeListenerSession.
      Returns:
      the spec.
      See Also:
      AbstractMessageListenerContainer.setExposeListenerSession(boolean)
    • acceptMessagesWhileStopping

      public S acceptMessagesWhileStopping​(boolean acceptMessagesWhileStopping)
      Parameters:
      acceptMessagesWhileStopping - the acceptMessagesWhileStopping.
      Returns:
      the spec.
      See Also:
      AbstractMessageListenerContainer.setAcceptMessagesWhileStopping(boolean)
    • clientId

      public S clientId​(java.lang.String clientId)
      Parameters:
      clientId - the clientId.
      Returns:
      the spec.
      See Also:
      AbstractJmsListeningContainer.setClientId(String)