Class AmqpAppender.Builder
java.lang.Object
org.springframework.amqp.rabbit.log4j2.AmqpAppender.Builder
- All Implemented Interfaces:
org.apache.logging.log4j.core.util.Builder<AmqpAppender>
- Enclosing class:
- AmqpAppender
protected static class AmqpAppender.Builder
extends Object
implements org.apache.logging.log4j.core.util.Builder<AmqpAppender>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
protected AmqpAppender
buildInstance
(String name, org.apache.logging.log4j.core.Filter filter, org.apache.logging.log4j.core.Layout<? extends Serializable> layout, boolean ignoreExceptions, AmqpAppender.AmqpManager manager, BlockingQueue<AmqpAppender.Event> eventQueue) Subclasses can extends Builder, use same logic but need to modify class instance.setAddMdcAsHeaders
(boolean addMdcAsHeaders) setAddresses
(String addresses) setApplicationId
(String applicationId) setAsync
(boolean async) setAutoDelete
(boolean autoDelete) setBlockingQueueFactory
(org.apache.logging.log4j.core.async.BlockingQueueFactory<AmqpAppender.Event> blockingQueueFactory) setBufferSize
(int bufferSize) setCharset
(String charset) setClientConnectionProperties
(String clientConnectionProperties) setConfiguration
(org.apache.logging.log4j.core.config.Configuration configuration) setConnectionName
(String connectionName) setContentEncoding
(String contentEncoding) setContentType
(String contentType) setDeclareExchange
(boolean declareExchange) setDeliveryMode
(String deliveryMode) setDurable
(boolean durable) setExchange
(String exchange) setExchangeType
(String exchangeType) setFilter
(org.apache.logging.log4j.core.Filter filter) setGenerateId
(boolean generateId) setIgnoreExceptions
(boolean ignoreExceptions) setKeyStore
(String keyStore) setKeyStorePassphrase
(String keyStorePassphrase) setKeyStoreType
(String keyStoreType) setLayout
(org.apache.logging.log4j.core.Layout<? extends Serializable> layout) setMaxSenderRetries
(int maxSenderRetries) setPassword
(String password) setRoutingKeyPattern
(String routingKeyPattern) setSaslConfig
(String saslConfig) setSenderPoolSize
(int senderPoolSize) setSslAlgorithm
(String sslAlgorithm) setSslPropertiesLocation
(String sslPropertiesLocation) setTrustStore
(String trustStore) setTrustStorePassphrase
(String trustStorePassphrase) setTrustStoreType
(String trustStoreType) setUseSsl
(boolean useSsl) setVerifyHostname
(boolean verifyHostname) setVirtualHost
(String virtualHost) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.logging.log4j.core.util.Builder
getErrorPrefix, isValid
-
Constructor Details
-
Builder
protected Builder()
-
-
Method Details
-
setConfiguration
public AmqpAppender.Builder setConfiguration(org.apache.logging.log4j.core.config.Configuration configuration) -
setName
-
setLayout
public AmqpAppender.Builder setLayout(org.apache.logging.log4j.core.Layout<? extends Serializable> layout) -
setFilter
-
setIgnoreExceptions
-
setUri
-
setHost
-
setPort
-
setAddresses
-
setUser
-
setPassword
-
setVirtualHost
-
setUseSsl
-
setVerifyHostname
-
setSslAlgorithm
-
setSslPropertiesLocation
-
setKeyStore
-
setKeyStorePassphrase
-
setKeyStoreType
-
setTrustStore
-
setTrustStorePassphrase
-
setTrustStoreType
-
setSaslConfig
-
setSenderPoolSize
-
setMaxSenderRetries
-
setApplicationId
-
setRoutingKeyPattern
-
setGenerateId
-
setDeliveryMode
-
setExchange
-
setExchangeType
-
setDeclareExchange
-
setDurable
-
setAutoDelete
-
setContentType
-
setContentEncoding
-
setConnectionName
-
setClientConnectionProperties
-
setAsync
-
setCharset
-
setBufferSize
-
setBlockingQueueFactory
public AmqpAppender.Builder setBlockingQueueFactory(org.apache.logging.log4j.core.async.BlockingQueueFactory<AmqpAppender.Event> blockingQueueFactory) -
setAddMdcAsHeaders
-
build
- Specified by:
build
in interfaceorg.apache.logging.log4j.core.util.Builder<AmqpAppender>
-
buildInstance
protected AmqpAppender buildInstance(String name, org.apache.logging.log4j.core.Filter filter, org.apache.logging.log4j.core.Layout<? extends Serializable> layout, boolean ignoreExceptions, AmqpAppender.AmqpManager manager, 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
-