public class CyclicBufferTracker<E> extends AbstractComponentTracker<CyclicBuffer<E>>
CyclicBuffer
instances.LINGERING_TIMEOUT, maxComponents, timeout, WAIT_BETWEEN_SUCCESSIVE_REMOVAL_ITERATIONS
DEFAULT_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, setTimeout
public int getBufferSize()
public void setBufferSize(int bufferSize)
protected void processPriorToRemoval(CyclicBuffer<E> component)
AbstractComponentTracker
processPriorToRemoval
in class AbstractComponentTracker<CyclicBuffer<E>>
protected CyclicBuffer<E> buildComponent(String key)
AbstractComponentTracker
buildComponent
in class AbstractComponentTracker<CyclicBuffer<E>>
protected boolean isComponentStale(CyclicBuffer<E> eCyclicBuffer)
AbstractComponentTracker
isComponentStale
in class AbstractComponentTracker<CyclicBuffer<E>>
Copyright © 2005–2021 QOS.ch. All rights reserved.