Class AmqpAppender.AmqpManager

java.lang.Object
org.apache.logging.log4j.core.appender.AbstractManager
org.springframework.amqp.rabbit.log4j2.AmqpAppender.AmqpManager
All Implemented Interfaces:
AutoCloseable
Enclosing class:
AmqpAppender

protected static class AmqpAppender.AmqpManager extends org.apache.logging.log4j.core.appender.AbstractManager
Manager class for the appender.
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.apache.logging.log4j.core.appender.AbstractManager

    org.apache.logging.log4j.core.appender.AbstractManager.AbstractFactoryData
  • Field Summary

    Fields inherited from class org.apache.logging.log4j.core.appender.AbstractManager

    count, LOGGER
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    AmqpManager(org.apache.logging.log4j.core.LoggerContext loggerContext, String name)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    protected com.rabbitmq.client.ConnectionFactory
    Create the ConnectionFactory.
    protected boolean
    releaseSub(long timeout, TimeUnit timeUnit)
     
    protected void
     

    Methods inherited from class org.apache.logging.log4j.core.appender.AbstractManager

    close, getContentFormat, getCount, getLoggerContext, getManager, getName, getStrSubstitutor, hasManager, log, logDebug, logError, logger, logWarn, narrow, release, stop, updateData

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AmqpManager

      protected AmqpManager(org.apache.logging.log4j.core.LoggerContext loggerContext, String name)
  • Method Details

    • createRabbitConnectionFactory

      protected com.rabbitmq.client.ConnectionFactory createRabbitConnectionFactory()
      Create the ConnectionFactory.
      Returns:
      a ConnectionFactory.
    • configureRabbitConnectionFactory

      protected void configureRabbitConnectionFactory(RabbitConnectionFactoryBean factoryBean)
      Configure the RabbitConnectionFactoryBean. Sub-classes may override to customize the configuration of the bean.
      Parameters:
      factoryBean - the RabbitConnectionFactoryBean.
    • releaseSub

      protected boolean releaseSub(long timeout, TimeUnit timeUnit)
      Overrides:
      releaseSub in class org.apache.logging.log4j.core.appender.AbstractManager
    • setUpExchangeDeclaration

      protected void setUpExchangeDeclaration()