java.lang.Object
ch.qos.logback.core.spi.AbstractComponentTracker<CyclicBuffer<E>>
ch.qos.logback.core.spi.CyclicBufferTracker<E>
- All Implemented Interfaces:
ComponentTracker<CyclicBuffer<E>>
CyclicBufferTracker tracks
CyclicBuffer
instances.- Author:
- Ceki Gülcü
-
Field Summary
Fields inherited from class ch.qos.logback.core.spi.AbstractComponentTracker
LINGERING_TIMEOUT, maxComponents, timeout, WAIT_BETWEEN_SUCCESSIVE_REMOVAL_ITERATIONS
Fields inherited from interface ch.qos.logback.core.spi.ComponentTracker
DEFAULT_MAX_COMPONENTS, DEFAULT_TIMEOUT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected CyclicBuffer
<E> buildComponent
(String key) Build a component based on the key.int
protected boolean
isComponentStale
(CyclicBuffer<E> eCyclicBuffer) Components can declare themselves stale.protected void
processPriorToRemoval
(CyclicBuffer<E> component) Stop or clean the component.void
setBufferSize
(int bufferSize) Methods inherited from class ch.qos.logback.core.spi.AbstractComponentTracker
allComponents, allKeys, endOfLife, find, getComponentCount, getMaxComponents, getOrCreate, getTimeout, removeStaleComponents, setMaxComponents, setTimeout
-
Constructor Details
-
CyclicBufferTracker
public CyclicBufferTracker()
-
-
Method Details
-
getBufferSize
-
setBufferSize
-
processPriorToRemoval
Description copied from class:AbstractComponentTracker
Stop or clean the component.- Specified by:
processPriorToRemoval
in classAbstractComponentTracker<CyclicBuffer<E>>
- Parameters:
component
-
-
buildComponent
Description copied from class:AbstractComponentTracker
Build a component based on the key.- Specified by:
buildComponent
in classAbstractComponentTracker<CyclicBuffer<E>>
- Parameters:
key
-- Returns:
-
isComponentStale
Description copied from class:AbstractComponentTracker
Components can declare themselves stale. Such components may be removed before they time out.- Specified by:
isComponentStale
in classAbstractComponentTracker<CyclicBuffer<E>>
- Parameters:
eCyclicBuffer
-- Returns:
-