public abstract class UnsynchronizedAppenderBase<E> extends ContextAwareBase implements Appender<E>
| Modifier and Type | Field and Description |
|---|---|
protected String |
name
Appenders are named.
|
protected boolean |
started |
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.
|
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.
|
String |
getName()
Get the name of this appender.
|
boolean |
isStarted() |
void |
setName(String name)
Set the name of this appender.
|
void |
start() |
void |
stop() |
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
protected String name
public String getName()
Appenderpublic void doAppend(E eventObject)
Appenderprotected abstract void append(E eventObject)
public void setName(String name)
public void addFilter(Filter<E> newFilter)
FilterAttachableaddFilter in interface FilterAttachable<E>public void clearAllFilters()
clearAllFilters in interface FilterAttachable<E>public List<Filter<E>> getCopyOfAttachedFiltersList()
FilterAttachablegetCopyOfAttachedFiltersList in interface FilterAttachable<E>public FilterReply getFilterChainDecision(E event)
FilterAttachablegetFilterChainDecision in interface FilterAttachable<E>Copyright © 2005–2021 QOS.ch. All rights reserved.