Class AmqpAppender.Builder

  • All Implemented Interfaces:
    org.apache.logging.log4j.core.util.Builder<AmqpAppender>
    Enclosing class:
    AmqpAppender

    protected static class AmqpAppender.Builder
    extends java.lang.Object
    implements org.apache.logging.log4j.core.util.Builder<AmqpAppender>
    • Constructor Detail

      • Builder

        protected Builder()
    • Method Detail

      • setConfiguration

        public AmqpAppender.Builder setConfiguration​(org.apache.logging.log4j.core.config.Configuration configuration)
      • setLayout

        public AmqpAppender.Builder setLayout​(org.apache.logging.log4j.core.Layout<? extends java.io.Serializable> layout)
      • setFilter

        public AmqpAppender.Builder setFilter​(org.apache.logging.log4j.core.Filter filter)
      • setIgnoreExceptions

        public AmqpAppender.Builder setIgnoreExceptions​(boolean ignoreExceptions)
      • setSslPropertiesLocation

        public AmqpAppender.Builder setSslPropertiesLocation​(java.lang.String sslPropertiesLocation)
      • setKeyStorePassphrase

        public AmqpAppender.Builder setKeyStorePassphrase​(java.lang.String keyStorePassphrase)
      • setTrustStorePassphrase

        public AmqpAppender.Builder setTrustStorePassphrase​(java.lang.String trustStorePassphrase)
      • setTrustStoreType

        public AmqpAppender.Builder setTrustStoreType​(java.lang.String trustStoreType)
      • setApplicationId

        public AmqpAppender.Builder setApplicationId​(java.lang.String applicationId)
      • setRoutingKeyPattern

        public AmqpAppender.Builder setRoutingKeyPattern​(java.lang.String routingKeyPattern)
      • setContentEncoding

        public AmqpAppender.Builder setContentEncoding​(java.lang.String contentEncoding)
      • setConnectionName

        public AmqpAppender.Builder setConnectionName​(java.lang.String connectionName)
      • setClientConnectionProperties

        public AmqpAppender.Builder setClientConnectionProperties​(java.lang.String clientConnectionProperties)
      • build

        public AmqpAppender build()
        Specified by:
        build in interface org.apache.logging.log4j.core.util.Builder<AmqpAppender>
      • buildInstance

        protected AmqpAppender buildInstance​(java.lang.String name,
                                             org.apache.logging.log4j.core.Filter filter,
                                             org.apache.logging.log4j.core.Layout<? extends java.io.Serializable> layout,
                                             boolean ignoreExceptions,
                                             AmqpAppender.AmqpManager manager,
                                             java.util.concurrent.BlockingQueue<AmqpAppender.Event> eventQueue)
        Subclasses can extends Builder, use same logic but need to modify class instance.
        Parameters:
        name - The Appender name.
        filter - The Filter to associate with the Appender.
        layout - The layout to use to format the event.
        ignoreExceptions - If true, exceptions will be logged and suppressed. If false errors will be logged and then passed to the application.
        manager - Manager class for the appender.
        eventQueue - Where LoggingEvents are queued to send.
        Returns:
        AmqpAppender