Class AbstractDatabaseManager.AbstractFactoryData
- java.lang.Object
-
- org.apache.logging.log4j.core.appender.AbstractManager.AbstractFactoryData
-
- org.apache.logging.log4j.core.appender.db.AbstractDatabaseManager.AbstractFactoryData
-
- Direct Known Subclasses:
JdbcDatabaseManager.FactoryData,NoSqlDatabaseManager.FactoryData
- Enclosing class:
- AbstractDatabaseManager
protected abstract static class AbstractDatabaseManager.AbstractFactoryData extends AbstractManager.AbstractFactoryData
Implementations should extend this class for passing data between the getManager method and the manager factory class.
-
-
Field Summary
Fields Modifier and Type Field Description private intbufferSizeprivate Layout<? extends java.io.Serializable>layout
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractFactoryData(int bufferSize, Layout<? extends java.io.Serializable> layout)Deprecated.protectedAbstractFactoryData(Configuration configuration, int bufferSize, Layout<? extends java.io.Serializable> layout)Constructs the base factory data.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetBufferSize()Gets the buffer size.Layout<? extends java.io.Serializable>getLayout()Gets the layout.-
Methods inherited from class org.apache.logging.log4j.core.appender.AbstractManager.AbstractFactoryData
getConfiguration
-
-
-
-
Field Detail
-
bufferSize
private final int bufferSize
-
layout
private final Layout<? extends java.io.Serializable> layout
-
-
Constructor Detail
-
AbstractFactoryData
protected AbstractFactoryData(int bufferSize, Layout<? extends java.io.Serializable> layout)Deprecated.Constructs the base factory data.- Parameters:
bufferSize- The size of the buffer.layout- The appender-level layout
-
AbstractFactoryData
protected AbstractFactoryData(Configuration configuration, int bufferSize, Layout<? extends java.io.Serializable> layout)
Constructs the base factory data.- Parameters:
configuration- Configuration creating this instance.bufferSize- The size of the buffer.layout- The appender-level layout
-
-
Method Detail
-
getBufferSize
public int getBufferSize()
Gets the buffer size.- Returns:
- the buffer size.
-
getLayout
public Layout<? extends java.io.Serializable> getLayout()
Gets the layout.- Returns:
- the layout.
-
-