Top Description Fields Constructors Methods
ch.qos.logback.core.spi

public Class CyclicBufferTracker<E>

extends AbstractComponentTracker<CyclicBuffer<E>>
Class Inheritance
Imports
ch.qos.logback.core.helpers.CyclicBuffer, java.util.*

CyclicBufferTracker tracks CyclicBuffer instances.
Author
Ceki Gülcü

Field Summary

Modifier and TypeField and Description
pack-priv int
pack-priv static final int
pack-priv static final int
Inherited from ch.qos.logback.core.spi.AbstractComponentTracker:
lastChecklingerersMapLINGERING_TIMEOUTliveMapmaxComponentstimeoutWAIT_BETWEEN_SUCCESSIVE_REMOVAL_ITERATIONS

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected CyclicBuffer<E>
buildComponent(String key)

Implements abstract ch.qos.logback.core.spi.AbstractComponentTracker.buildComponent.

Build a component based on the key.
public int
protected boolean
isComponentStale(CyclicBuffer<E> eCyclicBuffer)

Implements abstract ch.qos.logback.core.spi.AbstractComponentTracker.isComponentStale.

Components can declare themselves stale.
pack-priv List<String>
pack-priv List<String>
protected void
public void
setBufferSize(int bufferSize)

Inherited from ch.qos.logback.core.spi.AbstractComponentTracker:
allComponentsallKeysendOfLifefindgetComponentCountgetMaxComponentsgetOrCreategetTimeoutremoveStaleComponentssetMaxComponentssetTimeout

Field Detail

bufferSizeback to summary
pack-priv int bufferSize
DEFAULT_BUFFER_SIZEback to summary
pack-priv static final int DEFAULT_BUFFER_SIZE
DEFAULT_NUMBER_OF_BUFFERSback to summary
pack-priv static final int DEFAULT_NUMBER_OF_BUFFERS

Constructor Detail

CyclicBufferTrackerback to summary
public CyclicBufferTracker()

Method Detail

buildComponentback to summary
protected CyclicBuffer<E> buildComponent(String key)

Implements abstract ch.qos.logback.core.spi.AbstractComponentTracker.buildComponent.

Doc from ch.qos.logback.core.spi.AbstractComponentTracker.buildComponent.

Build a component based on the key.

Annotations
@Override
getBufferSizeback to summary
public int getBufferSize()
isComponentStaleback to summary
protected boolean isComponentStale(CyclicBuffer<E> eCyclicBuffer)

Implements abstract ch.qos.logback.core.spi.AbstractComponentTracker.isComponentStale.

Doc from ch.qos.logback.core.spi.AbstractComponentTracker.isComponentStale.

Components can declare themselves stale. Such components may be removed before they time out.

Annotations
@Override
lingererKeysAsOrderedListback to summary
pack-priv List<String> lingererKeysAsOrderedList()
liveKeysAsOrderedListback to summary
pack-priv List<String> liveKeysAsOrderedList()
processPriorToRemovalback to summary
protected void processPriorToRemoval(CyclicBuffer<E> component)

Implements abstract ch.qos.logback.core.spi.AbstractComponentTracker.processPriorToRemoval.

Doc from ch.qos.logback.core.spi.AbstractComponentTracker.processPriorToRemoval.

Stop or clean the component.

Annotations
@Override
setBufferSizeback to summary
public void setBufferSize(int bufferSize)