public class ThrottlingAppenderWrapper<E extends ch.qos.logback.core.spi.DeferredProcessingAware> extends Object implements ch.qos.logback.core.Appender<E>, AsyncAppenderBaseProxy<E>
AsyncAppenderBase that applies throttling to a proxied appender.
Throttling is defined by an average duration between messages.
Throttled messages are discarded.| Constructor and Description |
|---|
ThrottlingAppenderWrapper(ch.qos.logback.core.AsyncAppenderBase<E> delegate,
long messageRate,
TimeUnit rateUnit) |
| Modifier and Type | Method and Description |
|---|---|
void |
addError(String msg) |
void |
addError(String msg,
Throwable ex) |
void |
addFilter(ch.qos.logback.core.filter.Filter<E> newFilter) |
void |
addInfo(String msg) |
void |
addInfo(String msg,
Throwable ex) |
void |
addStatus(ch.qos.logback.core.status.Status status) |
void |
addWarn(String msg) |
void |
addWarn(String msg,
Throwable ex) |
void |
clearAllFilters() |
void |
doAppend(E event) |
ch.qos.logback.core.AsyncAppenderBase<E> |
getAppender() |
ch.qos.logback.core.Context |
getContext() |
List<ch.qos.logback.core.filter.Filter<E>> |
getCopyOfAttachedFiltersList() |
ch.qos.logback.core.spi.FilterReply |
getFilterChainDecision(E event) |
String |
getName() |
boolean |
isStarted() |
void |
setContext(ch.qos.logback.core.Context context) |
void |
setName(String name) |
void |
start() |
void |
stop() |
String |
toString() |
public ch.qos.logback.core.AsyncAppenderBase<E> getAppender()
getAppender in interface AsyncAppenderBaseProxy<E extends ch.qos.logback.core.spi.DeferredProcessingAware>public void start()
start in interface ch.qos.logback.core.spi.LifeCyclepublic void stop()
stop in interface ch.qos.logback.core.spi.LifeCyclepublic boolean isStarted()
isStarted in interface ch.qos.logback.core.spi.LifeCyclepublic void doAppend(E event) throws ch.qos.logback.core.LogbackException
doAppend in interface ch.qos.logback.core.Appender<E extends ch.qos.logback.core.spi.DeferredProcessingAware>ch.qos.logback.core.LogbackExceptionpublic String getName()
getName in interface ch.qos.logback.core.Appender<E extends ch.qos.logback.core.spi.DeferredProcessingAware>public void setName(String name)
setName in interface ch.qos.logback.core.Appender<E extends ch.qos.logback.core.spi.DeferredProcessingAware>public ch.qos.logback.core.Context getContext()
getContext in interface ch.qos.logback.core.spi.ContextAwarepublic void setContext(ch.qos.logback.core.Context context)
setContext in interface ch.qos.logback.core.spi.ContextAwarepublic void addStatus(ch.qos.logback.core.status.Status status)
addStatus in interface ch.qos.logback.core.spi.ContextAwarepublic void addInfo(String msg)
addInfo in interface ch.qos.logback.core.spi.ContextAwarepublic void addInfo(String msg, Throwable ex)
addInfo in interface ch.qos.logback.core.spi.ContextAwarepublic void addWarn(String msg)
addWarn in interface ch.qos.logback.core.spi.ContextAwarepublic void addWarn(String msg, Throwable ex)
addWarn in interface ch.qos.logback.core.spi.ContextAwarepublic void addError(String msg)
addError in interface ch.qos.logback.core.spi.ContextAwarepublic void addError(String msg, Throwable ex)
addError in interface ch.qos.logback.core.spi.ContextAwarepublic void addFilter(ch.qos.logback.core.filter.Filter<E> newFilter)
addFilter in interface ch.qos.logback.core.spi.FilterAttachable<E extends ch.qos.logback.core.spi.DeferredProcessingAware>public void clearAllFilters()
clearAllFilters in interface ch.qos.logback.core.spi.FilterAttachable<E extends ch.qos.logback.core.spi.DeferredProcessingAware>public List<ch.qos.logback.core.filter.Filter<E>> getCopyOfAttachedFiltersList()
getCopyOfAttachedFiltersList in interface ch.qos.logback.core.spi.FilterAttachable<E extends ch.qos.logback.core.spi.DeferredProcessingAware>public ch.qos.logback.core.spi.FilterReply getFilterChainDecision(E event)
getFilterChainDecision in interface ch.qos.logback.core.spi.FilterAttachable<E extends ch.qos.logback.core.spi.DeferredProcessingAware>Copyright © 2019. All rights reserved.