public class LimitedMemoryExchangeStore extends AbstractExchangeStore
exchangesStoreListeners| Constructor and Description |
|---|
LimitedMemoryExchangeStore() |
addExchangesStoreListener, collect, init, notifyListenersOnExchangeAdd, notifyListenersOnExchangeRemoval, refreshExchangeStoreListeners, removeExchangesStoreListenerpublic void snap(AbstractExchange exc, Interceptor.Flow flow)
ExchangeStorepublic <T extends AbstractExchange> T cleanSnapshot(T snapshot)
public void remove(AbstractExchange exc)
public void removeAllExchanges(Rule rule)
public AbstractExchange[] getExchanges(RuleKey ruleKey)
public int getNumberOfExchanges(RuleKey ruleKey)
public StatisticCollector getStatistics(RuleKey key)
public Object[] getAllExchanges()
public List<AbstractExchange> getAllExchangesAsList()
public void removeAllExchanges(AbstractExchange[] candidates)
public AbstractExchange getExchangeById(int id)
getExchangeById in interface ExchangeStoregetExchangeById in class AbstractExchangeStorepublic List<? extends ClientStatistics> getClientStatistics()
getClientStatistics in interface ExchangeStoregetClientStatistics in class AbstractExchangeStorepublic int getCurrentSize()
public Long getOldestTimeResSent()
public int getMaxSize()
public void setMaxSize(int maxSize)
public long getLastModified()
getLastModified in interface ExchangeStoregetLastModified in class AbstractExchangeStorepublic void waitForModification(long lastKnownModification)
throws InterruptedException
ExchangeStorewaitForModification in interface ExchangeStorewaitForModification in class AbstractExchangeStoreInterruptedExceptionpublic boolean isNewAlgorithm()
public void setNewAlgorithm(boolean newAlgorithm)
Copyright © 2022. All Rights Reserved.