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 ExchangeStorepublic void addExchangesStoreListener(IExchangesStoreListener viewer)
addExchangesStoreListener in interface ExchangeStorepublic AbstractExchange[] getExchanges(RuleKey ruleKey)
getExchanges in interface ExchangeStorepublic int getNumberOfExchanges(RuleKey ruleKey)
getNumberOfExchanges in interface ExchangeStorepublic StatisticCollector getStatistics(RuleKey ruleKey)
getStatistics in interface ExchangeStorepublic void notifyListenersOnExchangeAdd(Rule rule, AbstractExchange exchange)
notifyListenersOnExchangeAdd in interface ExchangeStorepublic void notifyListenersOnExchangeRemoval(AbstractExchange exchange)
notifyListenersOnExchangeRemoval in interface ExchangeStorepublic void notifyListenersOnRuleAdd(Rule rule)
public void notifyListenersOnRuleRemoval(Rule rule, int rulesLeft)
public void refreshExchangeStoreListeners()
refreshExchangeStoreListeners in interface ExchangeStorepublic void remove(AbstractExchange exchange)
remove in interface ExchangeStorepublic void removeAllExchanges(Rule rule)
removeAllExchanges in interface ExchangeStorepublic void removeExchangesStoreListener(IExchangesStoreListener viewer)
removeExchangesStoreListener in interface ExchangeStorepublic Object[] getAllExchanges()
getAllExchanges in interface ExchangeStorepublic Object[] getLatExchanges(int count)
public List<AbstractExchange> getAllExchangesAsList()
getAllExchangesAsList in interface ExchangeStorepublic void removeAllExchanges(AbstractExchange[] exchanges)
removeAllExchanges in interface ExchangeStoreCopyright © 2012. All Rights Reserved.