Class AmqpAppender.AmqpManager
- java.lang.Object
-
- org.apache.logging.log4j.core.appender.AbstractManager
-
- org.springframework.amqp.rabbit.log4j2.AmqpAppender.AmqpManager
-
- All Implemented Interfaces:
java.lang.AutoCloseable
- Enclosing class:
- AmqpAppender
protected static class AmqpAppender.AmqpManager extends org.apache.logging.log4j.core.appender.AbstractManager
Manager class for the appender.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AmqpManager(org.apache.logging.log4j.core.LoggerContext loggerContext, java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
configureRabbitConnectionFactory(RabbitConnectionFactoryBean factoryBean)
Configure theRabbitConnectionFactoryBean
.protected com.rabbitmq.client.ConnectionFactory
createRabbitConnectionFactory()
Create theConnectionFactory
.protected boolean
releaseSub(long timeout, java.util.concurrent.TimeUnit timeUnit)
protected void
setUpExchangeDeclaration()
-
-
-
Method Detail
-
createRabbitConnectionFactory
protected com.rabbitmq.client.ConnectionFactory createRabbitConnectionFactory()
Create theConnectionFactory
.- Returns:
- a
ConnectionFactory
.
-
configureRabbitConnectionFactory
protected void configureRabbitConnectionFactory(RabbitConnectionFactoryBean factoryBean)
Configure theRabbitConnectionFactoryBean
. Sub-classes may override to customize the configuration of the bean.- Parameters:
factoryBean
- theRabbitConnectionFactoryBean
.
-
releaseSub
protected boolean releaseSub(long timeout, java.util.concurrent.TimeUnit timeUnit)
- Overrides:
releaseSub
in classorg.apache.logging.log4j.core.appender.AbstractManager
-
setUpExchangeDeclaration
protected void setUpExchangeDeclaration()
-
-