public class ForgetfulExchangeStore extends Object implements ExchangeStore
Constructor and Description |
---|
ForgetfulExchangeStore() |
Modifier and Type | Method and Description |
---|---|
void |
add(AbstractExchange exchange) |
void |
addExchangesStoreListener(IExchangesStoreListener viewer) |
Object[] |
getAllExchanges() |
List<AbstractExchange> |
getAllExchangesAsList() |
AbstractExchange[] |
getExchanges(RuleKey ruleKey) |
Object[] |
getLatExchanges(int count) |
int |
getNumberOfExchanges(RuleKey ruleKey) |
StatisticCollector |
getStatistics(RuleKey ruleKey) |
void |
notifyListenersOnExchangeAdd(Rule rule,
AbstractExchange exchange) |
void |
notifyListenersOnExchangeRemoval(AbstractExchange exchange) |
void |
notifyListenersOnRuleAdd(Rule rule) |
void |
notifyListenersOnRuleRemoval(Rule rule,
int rulesLeft) |
void |
refreshExchangeStoreListeners() |
void |
remove(AbstractExchange exchange) |
void |
removeAllExchanges(AbstractExchange[] exchanges) |
void |
removeAllExchanges(Rule rule) |
void |
removeExchangesStoreListener(IExchangesStoreListener viewer) |
public void add(AbstractExchange exchange)
add
in interface ExchangeStore
public void addExchangesStoreListener(IExchangesStoreListener viewer)
addExchangesStoreListener
in interface ExchangeStore
public AbstractExchange[] getExchanges(RuleKey ruleKey)
getExchanges
in interface ExchangeStore
public int getNumberOfExchanges(RuleKey ruleKey)
getNumberOfExchanges
in interface ExchangeStore
public StatisticCollector getStatistics(RuleKey ruleKey)
getStatistics
in interface ExchangeStore
public void notifyListenersOnExchangeAdd(Rule rule, AbstractExchange exchange)
notifyListenersOnExchangeAdd
in interface ExchangeStore
public void notifyListenersOnExchangeRemoval(AbstractExchange exchange)
notifyListenersOnExchangeRemoval
in interface ExchangeStore
public void notifyListenersOnRuleAdd(Rule rule)
public void notifyListenersOnRuleRemoval(Rule rule, int rulesLeft)
public void refreshExchangeStoreListeners()
refreshExchangeStoreListeners
in interface ExchangeStore
public void remove(AbstractExchange exchange)
remove
in interface ExchangeStore
public void removeAllExchanges(Rule rule)
removeAllExchanges
in interface ExchangeStore
public void removeExchangesStoreListener(IExchangesStoreListener viewer)
removeExchangesStoreListener
in interface ExchangeStore
public Object[] getAllExchanges()
getAllExchanges
in interface ExchangeStore
public Object[] getLatExchanges(int count)
public List<AbstractExchange> getAllExchangesAsList()
getAllExchangesAsList
in interface ExchangeStore
public void removeAllExchanges(AbstractExchange[] exchanges)
removeAllExchanges
in interface ExchangeStore
Copyright © 2012. All Rights Reserved.