ch.qos.logback.core.spi
Class CyclicBufferTracker<E>
java.lang.Object
ch.qos.logback.core.spi.AbstractComponentTracker<CyclicBuffer<E>>
ch.qos.logback.core.spi.CyclicBufferTracker<E>
- All Implemented Interfaces:
- ComponentTracker<CyclicBuffer<E>>
public class CyclicBufferTracker<E>
- extends AbstractComponentTracker<CyclicBuffer<E>>
CyclicBufferTracker tracks CyclicBuffer
instances.
- Author:
- Ceki Gücü
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 |
CyclicBufferTracker
public CyclicBufferTracker()
getBufferSize
public int getBufferSize()
setBufferSize
public void setBufferSize(int bufferSize)
processPriorToRemoval
protected void processPriorToRemoval(CyclicBuffer<E> component)
- Description copied from class:
AbstractComponentTracker
- Stop or clean the component.
- Specified by:
processPriorToRemoval
in class AbstractComponentTracker<CyclicBuffer<E>>
buildComponent
protected CyclicBuffer<E> buildComponent(String key)
- Description copied from class:
AbstractComponentTracker
- Build a component based on the key.
- Specified by:
buildComponent
in class AbstractComponentTracker<CyclicBuffer<E>>
- Returns:
isComponentStale
protected boolean isComponentStale(CyclicBuffer<E> eCyclicBuffer)
- 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<CyclicBuffer<E>>
- Returns:
Copyright © 2005-2013 QOS.ch. All Rights Reserved.