Package org.springframework.jms.config
Class AbstractJmsListenerContainerFactory<C extends AbstractMessageListenerContainer>
java.lang.Object
org.springframework.jms.config.AbstractJmsListenerContainerFactory<C>
- Type Parameters:
C
- the container type
- All Implemented Interfaces:
JmsListenerContainerFactory<C>
- Direct Known Subclasses:
DefaultJmsListenerContainerFactory
,SimpleJmsListenerContainerFactory
public abstract class AbstractJmsListenerContainerFactory<C extends AbstractMessageListenerContainer>
extends Object
implements JmsListenerContainerFactory<C>
Base
JmsListenerContainerFactory
for Spring's base container implementation.- Since:
- 4.1
- Author:
- Stephane Nicoll
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract C
Create an empty container instance.createListenerContainer
(JmsListenerEndpoint endpoint) Create aMessageListenerContainer
for the givenJmsListenerEndpoint
.protected void
initializeContainer
(C instance) Further initialize the specified container.void
setAutoStartup
(boolean autoStartup) void
setClientId
(String clientId) void
setConnectionFactory
(ConnectionFactory connectionFactory) void
setDestinationResolver
(DestinationResolver destinationResolver) void
setErrorHandler
(ErrorHandler errorHandler) void
setExceptionListener
(ExceptionListener exceptionListener) void
setMessageConverter
(MessageConverter messageConverter) void
setObservationRegistry
(io.micrometer.observation.ObservationRegistry observationRegistry) Set theObservationRegistry
to be used for recording JMS message processing observations.void
setPhase
(int phase) void
setPubSubDomain
(Boolean pubSubDomain) void
setReplyPubSubDomain
(Boolean replyPubSubDomain) void
setReplyQosSettings
(QosSettings replyQosSettings) void
setSessionAcknowledgeMode
(Integer sessionAcknowledgeMode) void
setSessionTransacted
(Boolean sessionTransacted) void
setSubscriptionDurable
(Boolean subscriptionDurable) void
setSubscriptionShared
(Boolean subscriptionShared)
-
Field Details
-
logger
-
-
Constructor Details
-
AbstractJmsListenerContainerFactory
public AbstractJmsListenerContainerFactory()
-
-
Method Details
-
setConnectionFactory
-
setDestinationResolver
-
setMessageConverter
-
setExceptionListener
- Since:
- 5.2.8
- See Also:
-
setErrorHandler
-
setSessionTransacted
-
setSessionAcknowledgeMode
-
setPubSubDomain
-
setReplyPubSubDomain
-
setReplyQosSettings
-
setSubscriptionDurable
-
setClientId
-
setPhase
public void setPhase(int phase) -
setAutoStartup
public void setAutoStartup(boolean autoStartup) -
setObservationRegistry
public void setObservationRegistry(io.micrometer.observation.ObservationRegistry observationRegistry) Set theObservationRegistry
to be used for recording JMS message processing observations.Defaults to no-op observations if the registry is not set.
- Since:
- 6.1
- See Also:
-
createListenerContainer
Description copied from interface:JmsListenerContainerFactory
Create aMessageListenerContainer
for the givenJmsListenerEndpoint
.- Specified by:
createListenerContainer
in interfaceJmsListenerContainerFactory<C extends AbstractMessageListenerContainer>
- Parameters:
endpoint
- the endpoint to configure- Returns:
- the created container
-
createContainerInstance
Create an empty container instance. -
initializeContainer
Further initialize the specified container.Subclasses can inherit from this method to apply extra configuration if necessary.
-