public class CyclicBufferTrackerT<E> extends Object implements ComponentTracker<CyclicBuffer<E>>
DEFAULT_MAX_COMPONENTS, DEFAULT_TIMEOUT
Constructor and Description |
---|
CyclicBufferTrackerT() |
Modifier and Type | Method and Description |
---|---|
Collection<CyclicBuffer<E>> |
allComponents() |
Set<String> |
allKeys() |
void |
endOfLife(String k) |
CyclicBuffer<E> |
find(String key) |
int |
getComponentCount() |
CyclicBuffer<E> |
getOrCreate(String key,
long timestamp) |
void |
removeStaleComponents(long now) |
public CyclicBufferTrackerT()
public Set<String> allKeys()
allKeys
in interface ComponentTracker<CyclicBuffer<E>>
public Collection<CyclicBuffer<E>> allComponents()
allComponents
in interface ComponentTracker<CyclicBuffer<E>>
public CyclicBuffer<E> find(String key)
find
in interface ComponentTracker<CyclicBuffer<E>>
public CyclicBuffer<E> getOrCreate(String key, long timestamp)
getOrCreate
in interface ComponentTracker<CyclicBuffer<E>>
public void endOfLife(String k)
endOfLife
in interface ComponentTracker<CyclicBuffer<E>>
public void removeStaleComponents(long now)
removeStaleComponents
in interface ComponentTracker<CyclicBuffer<E>>
public int getComponentCount()
getComponentCount
in interface ComponentTracker<CyclicBuffer<E>>
Copyright © 2005–2018 QOS.ch. All rights reserved.