public abstract class UnsynchronizedAppenderBase<E> extends ContextAwareBase implements Appender<E>
| Modifier and Type | Field and Description |
|---|---|
(package private) static int |
ALLOWED_REPEATS |
private int |
exceptionCount |
private FilterAttachableImpl<E> |
fai |
private java.lang.ThreadLocal<java.lang.Boolean> |
guard
The guard prevents an appender from repeatedly calling its own doAppend
method.
|
protected java.lang.String |
name
Appenders are named.
|
protected boolean |
started |
private int |
statusRepeatCount |
context| Constructor and Description |
|---|
UnsynchronizedAppenderBase() |
| Modifier and Type | Method and Description |
|---|---|
void |
addFilter(Filter<E> newFilter)
Add a filter.
|
protected abstract void |
append(E eventObject) |
void |
clearAllFilters() |
void |
doAppend(E eventObject)
This is where an appender accomplishes its work.
|
java.util.List<Filter<E>> |
getCopyOfAttachedFiltersList()
Get a copy of all the filters contained within this FilterAttachable
object.
|
FilterReply |
getFilterChainDecision(E event)
Loop through the filters in the chain.
|
java.lang.String |
getName()
Get the name of this appender.
|
boolean |
isStarted() |
void |
setName(java.lang.String name)
Set the name of this appender.
|
void |
start() |
void |
stop() |
java.lang.String |
toString() |
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContextprotected boolean started
private java.lang.ThreadLocal<java.lang.Boolean> guard
protected java.lang.String name
private FilterAttachableImpl<E> fai
private int statusRepeatCount
private int exceptionCount
static final int ALLOWED_REPEATS
public java.lang.String getName()
Appenderpublic void doAppend(E eventObject)
Appenderprotected abstract void append(E eventObject)
public void setName(java.lang.String name)
public java.lang.String toString()
toString in class java.lang.Objectpublic void addFilter(Filter<E> newFilter)
FilterAttachableaddFilter in interface FilterAttachable<E>public void clearAllFilters()
clearAllFilters in interface FilterAttachable<E>public java.util.List<Filter<E>> getCopyOfAttachedFiltersList()
FilterAttachablegetCopyOfAttachedFiltersList in interface FilterAttachable<E>public FilterReply getFilterChainDecision(E event)
FilterAttachablegetFilterChainDecision in interface FilterAttachable<E>