public class AmqpChannelFactoryBean extends AbstractFactoryBean<AbstractAmqpChannel> implements SmartLifecycle, BeanNameAware
logger
DEFAULT_PHASE
OBJECT_TYPE_ATTRIBUTE
Constructor and Description |
---|
AmqpChannelFactoryBean() |
AmqpChannelFactoryBean(boolean messageDriven) |
Modifier and Type | Method and Description |
---|---|
protected AbstractAmqpChannel |
createInstance() |
protected void |
destroyInstance(AbstractAmqpChannel instance) |
Class<?> |
getObjectType() |
int |
getPhase() |
boolean |
isAutoStartup() |
boolean |
isRunning() |
void |
setAcknowledgeMode(AcknowledgeMode acknowledgeMode) |
void |
setAdviceChain(Advice[] adviceChain) |
void |
setAmqpAdmin(AmqpAdmin amqpAdmin)
This is an optional reference to an AmqpAdmin to use when
declaring a Queue implicitly for a PollableAmqpChannel.
|
void |
setAutoStartup(boolean autoStartup) |
void |
setBatchSize(Integer batchSize) |
void |
setBeanName(String name) |
void |
setChannelTransacted(boolean channelTransacted) |
void |
setConcurrentConsumers(int concurrentConsumers) |
void |
setConnectionFactory(ConnectionFactory connectionFactory) |
void |
setConsumersPerQueue(Integer consumersPerQueue) |
void |
setDefaultDeliveryMode(MessageDeliveryMode defaultDeliveryMode) |
void |
setEncoding(String encoding) |
void |
setErrorHandler(ErrorHandler errorHandler) |
void |
setExchange(FanoutExchange exchange)
Set the FanoutExchange to use.
|
void |
setExposeListenerChannel(boolean exposeListenerChannel) |
void |
setExtractPayload(Boolean extractPayload) |
void |
setHeadersLast(boolean headersLast) |
void |
setInboundHeaderMapper(AmqpHeaderMapper inboundMapper) |
void |
setInterceptors(List<ChannelInterceptor> interceptors) |
void |
setMaxSubscribers(int maxSubscribers) |
void |
setMessageConverter(MessageConverter messageConverter) |
void |
setMessagePropertiesConverter(MessagePropertiesConverter messagePropertiesConverter) |
void |
setMissingQueuesFatal(Boolean missingQueuesFatal) |
void |
setOutboundHeaderMapper(AmqpHeaderMapper outboundMapper) |
void |
setPhase(int phase) |
void |
setPrefetchCount(int prefetchCount) |
void |
setPubSub(boolean pubSub) |
void |
setQueueName(String queueName)
Set the Queue name to use.
|
void |
setReceiveTimeout(long receiveTimeout) |
void |
setRecoveryInterval(long recoveryInterval) |
void |
setShutdownTimeout(long shutdownTimeout) |
void |
setTaskExecutor(Executor taskExecutor) |
void |
setTemplateChannelTransacted(boolean channelTransacted) |
void |
setTransactionAttribute(TransactionAttribute transactionAttribute) |
void |
setTransactionManager(PlatformTransactionManager transactionManager) |
void |
start() |
void |
stop() |
void |
stop(Runnable callback) |
afterPropertiesSet, destroy, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
public AmqpChannelFactoryBean()
public AmqpChannelFactoryBean(boolean messageDriven)
public void setBeanName(@Nullable String name)
setBeanName
in interface BeanNameAware
public void setInterceptors(List<ChannelInterceptor> interceptors)
public void setAmqpAdmin(AmqpAdmin amqpAdmin)
amqpAdmin
- The amqp admin.public void setExchange(FanoutExchange exchange)
exchange
- The fanout exchange.public void setQueueName(String queueName)
queueName
- The queue name.public void setEncoding(String encoding)
public void setMessageConverter(MessageConverter messageConverter)
public void setTemplateChannelTransacted(boolean channelTransacted)
public void setChannelTransacted(boolean channelTransacted)
public void setConnectionFactory(ConnectionFactory connectionFactory)
public void setMessagePropertiesConverter(MessagePropertiesConverter messagePropertiesConverter)
public void setAcknowledgeMode(AcknowledgeMode acknowledgeMode)
public void setAdviceChain(Advice[] adviceChain)
public void setAutoStartup(boolean autoStartup)
public void setConcurrentConsumers(int concurrentConsumers)
public void setConsumersPerQueue(Integer consumersPerQueue)
public void setErrorHandler(ErrorHandler errorHandler)
public void setExposeListenerChannel(boolean exposeListenerChannel)
public void setPhase(int phase)
public void setPrefetchCount(int prefetchCount)
public void setPubSub(boolean pubSub)
public void setReceiveTimeout(long receiveTimeout)
public void setRecoveryInterval(long recoveryInterval)
public void setShutdownTimeout(long shutdownTimeout)
public void setTaskExecutor(Executor taskExecutor)
public void setTransactionAttribute(TransactionAttribute transactionAttribute)
public void setTransactionManager(PlatformTransactionManager transactionManager)
public void setBatchSize(Integer batchSize)
public void setMaxSubscribers(int maxSubscribers)
public void setMissingQueuesFatal(Boolean missingQueuesFatal)
public void setDefaultDeliveryMode(MessageDeliveryMode defaultDeliveryMode)
public void setExtractPayload(Boolean extractPayload)
public void setOutboundHeaderMapper(AmqpHeaderMapper outboundMapper)
public void setInboundHeaderMapper(AmqpHeaderMapper inboundMapper)
public void setHeadersLast(boolean headersLast)
public Class<?> getObjectType()
getObjectType
in interface FactoryBean<AbstractAmqpChannel>
getObjectType
in class AbstractFactoryBean<AbstractAmqpChannel>
protected AbstractAmqpChannel createInstance()
createInstance
in class AbstractFactoryBean<AbstractAmqpChannel>
public boolean isAutoStartup()
isAutoStartup
in interface SmartLifecycle
public int getPhase()
getPhase
in interface Phased
getPhase
in interface SmartLifecycle
public void stop(Runnable callback)
stop
in interface SmartLifecycle
protected void destroyInstance(AbstractAmqpChannel instance)
destroyInstance
in class AbstractFactoryBean<AbstractAmqpChannel>