public class CyclicBufferTracker<E> extends AbstractComponentTracker<CyclicBuffer<E>>
CyclicBuffer instances.LINGERING_TIMEOUT, maxComponents, timeout, WAIT_BETWEEN_SUCCESSIVE_REMOVAL_ITERATIONSDEFAULT_MAX_COMPONENTS, DEFAULT_TIMEOUT| Constructor and Description |
|---|
CyclicBufferTracker() |
| Modifier and Type | Method and Description |
|---|---|
protected CyclicBuffer<E> |
buildComponent(String key)
Build a component based on the key.
|
int |
getBufferSize() |
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) |
allComponents, allKeys, endOfLife, find, getComponentCount, getMaxComponents, getOrCreate, getTimeout, removeStaleComponents, setMaxComponents, setTimeoutpublic int getBufferSize()
public void setBufferSize(int bufferSize)
protected void processPriorToRemoval(CyclicBuffer<E> component)
AbstractComponentTrackerprocessPriorToRemoval in class AbstractComponentTracker<CyclicBuffer<E>>protected CyclicBuffer<E> buildComponent(String key)
AbstractComponentTrackerbuildComponent in class AbstractComponentTracker<CyclicBuffer<E>>protected boolean isComponentStale(CyclicBuffer<E> eCyclicBuffer)
AbstractComponentTrackerisComponentStale in class AbstractComponentTracker<CyclicBuffer<E>>Copyright © 2005-2014 QOS.ch. All Rights Reserved.