ch.qos.logback.core.sift
Class AppenderTracker<E>
java.lang.Object
ch.qos.logback.core.spi.AbstractComponentTracker<Appender<E>>
ch.qos.logback.core.sift.AppenderTracker<E>
- All Implemented Interfaces:
- ComponentTracker<Appender<E>>
public class AppenderTracker<E>
- extends AbstractComponentTracker<Appender<E>>
Track appenders by key. When an appender is not used for
longer than ComponentTracker.DEFAULT_TIMEOUT
it is stopped and removed.
- Author:
- Tommy Becker, Ceki Gulcu, David Roussel
Methods inherited from class ch.qos.logback.core.spi.AbstractComponentTracker |
allComponents, allKeys, endOfLife, find, getComponentCount, getMaxComponents, getOrCreate, getTimeout, removeStaleComponents, setMaxComponents, setTimeout |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AppenderTracker
public AppenderTracker(Context context,
AppenderFactory<E> appenderFactory)
processPriorToRemoval
protected void processPriorToRemoval(Appender<E> component)
- Description copied from class:
AbstractComponentTracker
- Stop or clean the component.
- Specified by:
processPriorToRemoval
in class AbstractComponentTracker<Appender<E>>
buildComponent
protected Appender<E> buildComponent(String key)
- Description copied from class:
AbstractComponentTracker
- Build a component based on the key.
- Specified by:
buildComponent
in class AbstractComponentTracker<Appender<E>>
- Returns:
isComponentStale
protected boolean isComponentStale(Appender<E> appender)
- Description copied from class:
AbstractComponentTracker
- Components can declare themselves stale. Such components may be
removed before they time out.
- Specified by:
isComponentStale
in class AbstractComponentTracker<Appender<E>>
- Returns:
Copyright © 2005-2013 QOS.ch. All Rights Reserved.