Class JmsListenerContainerSpec<S extends JmsListenerContainerSpec<S,C>, C extends org.springframework.jms.listener.AbstractMessageListenerContainer>
java.lang.Object
org.springframework.integration.dsl.IntegrationComponentSpec<S,C>
org.springframework.integration.jms.dsl.JmsDestinationAccessorSpec<S,C>
org.springframework.integration.jms.dsl.JmsListenerContainerSpec<S,C>
- Type Parameters:
S- the targetJmsListenerContainerSpecimplementation type.C- the targetAbstractMessageListenerContainerimplementation type.
- All Implemented Interfaces:
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
logger, PARSER, targetFields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTEFields inherited from interface org.springframework.context.SmartLifecycle
DEFAULT_PHASE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionacceptMessagesWhileStopping(boolean acceptMessagesWhileStopping) durableSubscriptionName(String durableSubscriptionName) errorHandler(org.springframework.util.ErrorHandler errorHandler) exceptionListener(jakarta.jms.ExceptionListener exceptionListener) exposeListenerSession(boolean exposeListenerSession) messageSelector(String messageSelector) observationRegistry(io.micrometer.observation.ObservationRegistry observationRegistry) Configure anObservationRegistryto use in the target listener container.subscriptionDurable(boolean subscriptionDurable) subscriptionShared(boolean subscriptionShared) Set whether to make the subscription shared.Methods inherited from class JmsDestinationAccessorSpec
connectionFactory, destinationResolver, id, pubSubDomain, sessionAcknowledgeMode, sessionAcknowledgeModeName, sessionTransactedMethods inherited from class org.springframework.integration.dsl.IntegrationComponentSpec
_this, afterPropertiesSet, destroy, doGet, getId, getObject, getObjectType, getPhase, isAutoStartup, isRunning, start, stop, stopMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.beans.factory.FactoryBean
isSingletonMethods inherited from interface org.springframework.context.SmartLifecycle
isPauseable
-
Constructor Details
-
JmsListenerContainerSpec
-
-
Method Details
-
messageSelector
-
subscriptionDurable
- Parameters:
subscriptionDurable- the subscriptionDurable.- Returns:
- the spec.
- See Also:
-
durableSubscriptionName
-
exceptionListener
- Parameters:
exceptionListener- the exceptionListener.- Returns:
- the spec.
- See Also:
-
errorHandler
- Parameters:
errorHandler- the errorHandler.- Returns:
- the spec.
- See Also:
-
exposeListenerSession
- Parameters:
exposeListenerSession- the exposeListenerSession.- Returns:
- the spec.
- See Also:
-
acceptMessagesWhileStopping
- Parameters:
acceptMessagesWhileStopping- the acceptMessagesWhileStopping.- Returns:
- the spec.
- See Also:
-
clientId
-
observationRegistry
Configure anObservationRegistryto use in the target listener container.- Parameters:
observationRegistry- the observationRegistry.- Returns:
- the spec.
- Since:
- 6.2
- See Also:
-