public final class TracingJmsListenerEndpointRegistry
extends org.springframework.jms.config.JmsListenerEndpointRegistry
MessageConsumer.receive()
.
Internal class for Sleuth, do not use. Its API can change at anytime.
Placed under this package cause we need to use the package scoped API.Constructor and Description |
---|
TracingJmsListenerEndpointRegistry(org.springframework.jms.config.JmsListenerEndpointRegistry registry,
org.springframework.beans.factory.BeanFactory beanFactory) |
Modifier and Type | Method and Description |
---|---|
protected org.springframework.jms.listener.MessageListenerContainer |
createListenerContainer(org.springframework.jms.config.JmsListenerEndpoint endpoint,
org.springframework.jms.config.JmsListenerContainerFactory<?> factory) |
void |
destroy() |
org.springframework.jms.listener.MessageListenerContainer |
getListenerContainer(String id) |
Set<String> |
getListenerContainerIds() |
Collection<org.springframework.jms.listener.MessageListenerContainer> |
getListenerContainers() |
int |
getPhase() |
boolean |
isAutoStartup() |
boolean |
isRunning() |
void |
onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event) |
void |
registerListenerContainer(org.springframework.jms.config.JmsListenerEndpoint endpoint,
org.springframework.jms.config.JmsListenerContainerFactory<?> factory) |
void |
registerListenerContainer(org.springframework.jms.config.JmsListenerEndpoint endpoint,
org.springframework.jms.config.JmsListenerContainerFactory<?> factory,
boolean startImmediately) |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
start() |
void |
stop() |
void |
stop(Runnable callback) |
public TracingJmsListenerEndpointRegistry(org.springframework.jms.config.JmsListenerEndpointRegistry registry, org.springframework.beans.factory.BeanFactory beanFactory)
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
setApplicationContext
in class org.springframework.jms.config.JmsListenerEndpointRegistry
public void onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event)
onApplicationEvent
in interface org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
onApplicationEvent
in class org.springframework.jms.config.JmsListenerEndpointRegistry
public org.springframework.jms.listener.MessageListenerContainer getListenerContainer(String id)
getListenerContainer
in class org.springframework.jms.config.JmsListenerEndpointRegistry
public Set<String> getListenerContainerIds()
getListenerContainerIds
in class org.springframework.jms.config.JmsListenerEndpointRegistry
public Collection<org.springframework.jms.listener.MessageListenerContainer> getListenerContainers()
getListenerContainers
in class org.springframework.jms.config.JmsListenerEndpointRegistry
public void registerListenerContainer(org.springframework.jms.config.JmsListenerEndpoint endpoint, org.springframework.jms.config.JmsListenerContainerFactory<?> factory)
registerListenerContainer
in class org.springframework.jms.config.JmsListenerEndpointRegistry
protected org.springframework.jms.listener.MessageListenerContainer createListenerContainer(org.springframework.jms.config.JmsListenerEndpoint endpoint, org.springframework.jms.config.JmsListenerContainerFactory<?> factory)
createListenerContainer
in class org.springframework.jms.config.JmsListenerEndpointRegistry
public int getPhase()
getPhase
in interface org.springframework.context.Phased
getPhase
in interface org.springframework.context.SmartLifecycle
getPhase
in class org.springframework.jms.config.JmsListenerEndpointRegistry
public void start()
start
in interface org.springframework.context.Lifecycle
start
in class org.springframework.jms.config.JmsListenerEndpointRegistry
public void stop()
stop
in interface org.springframework.context.Lifecycle
stop
in class org.springframework.jms.config.JmsListenerEndpointRegistry
public void stop(Runnable callback)
stop
in interface org.springframework.context.SmartLifecycle
stop
in class org.springframework.jms.config.JmsListenerEndpointRegistry
public boolean isRunning()
isRunning
in interface org.springframework.context.Lifecycle
isRunning
in class org.springframework.jms.config.JmsListenerEndpointRegistry
public void destroy()
destroy
in interface org.springframework.beans.factory.DisposableBean
destroy
in class org.springframework.jms.config.JmsListenerEndpointRegistry
public boolean isAutoStartup()
public void registerListenerContainer(org.springframework.jms.config.JmsListenerEndpoint endpoint, org.springframework.jms.config.JmsListenerContainerFactory<?> factory, boolean startImmediately)
registerListenerContainer
in class org.springframework.jms.config.JmsListenerEndpointRegistry
Copyright © 2021 Pivotal Software, Inc.. All rights reserved.