public class AppenderTracker<E> extends AbstractComponentTracker<Appender<E>>
ComponentTracker.DEFAULT_TIMEOUT
it is stopped and removed.LINGERING_TIMEOUT, maxComponents, timeout, WAIT_BETWEEN_SUCCESSIVE_REMOVAL_ITERATIONS
DEFAULT_MAX_COMPONENTS, DEFAULT_TIMEOUT
Constructor and Description |
---|
AppenderTracker(Context context,
AppenderFactory<E> appenderFactory) |
Modifier and Type | Method and Description |
---|---|
protected Appender<E> |
buildComponent(String key)
Build a component based on the key.
|
protected boolean |
isComponentStale(Appender<E> appender)
Components can declare themselves stale.
|
protected void |
processPriorToRemoval(Appender<E> component)
Stop or clean the component.
|
allComponents, allKeys, endOfLife, find, getComponentCount, getMaxComponents, getOrCreate, getTimeout, removeStaleComponents, setMaxComponents, setTimeout
public AppenderTracker(Context context, AppenderFactory<E> appenderFactory)
protected void processPriorToRemoval(Appender<E> component)
AbstractComponentTracker
processPriorToRemoval
in class AbstractComponentTracker<Appender<E>>
protected Appender<E> buildComponent(String key)
AbstractComponentTracker
buildComponent
in class AbstractComponentTracker<Appender<E>>
protected boolean isComponentStale(Appender<E> appender)
AbstractComponentTracker
isComponentStale
in class AbstractComponentTracker<Appender<E>>
Copyright © 2005–2014 QOS.ch. All rights reserved.