public abstract class AbstractExchangeStore extends Object implements ExchangeStore
| Modifier and Type | Field and Description |
|---|---|
protected Set<IExchangesStoreListener> |
exchangesStoreListeners |
| Constructor and Description |
|---|
AbstractExchangeStore() |
| Modifier and Type | Method and Description |
|---|---|
void |
addExchangesStoreListener(IExchangesStoreListener viewer) |
void |
collect(ExchangeCollector collector) |
List<? extends ClientStatistics> |
getClientStatistics() |
AbstractExchange |
getExchangeById(int id) |
long |
getLastModified() |
void |
init() |
void |
notifyListenersOnExchangeAdd(Rule rule,
AbstractExchange exchange) |
void |
notifyListenersOnExchangeRemoval(AbstractExchange exchange) |
void |
refreshExchangeStoreListeners() |
void |
removeExchangesStoreListener(IExchangesStoreListener viewer) |
void |
waitForModification(long lastKnownModification)
Returns immediately if lastKnownModification is smaller than last known modification.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAllExchanges, getAllExchangesAsList, getExchanges, getNumberOfExchanges, getStatistics, remove, removeAllExchanges, removeAllExchanges, snapprotected Set<IExchangesStoreListener> exchangesStoreListeners
public void addExchangesStoreListener(IExchangesStoreListener viewer)
addExchangesStoreListener in interface ExchangeStorepublic void removeExchangesStoreListener(IExchangesStoreListener viewer)
removeExchangesStoreListener in interface ExchangeStorepublic void refreshExchangeStoreListeners()
refreshExchangeStoreListeners in interface ExchangeStorepublic void notifyListenersOnExchangeAdd(Rule rule, AbstractExchange exchange)
notifyListenersOnExchangeAdd in interface ExchangeStorepublic void notifyListenersOnExchangeRemoval(AbstractExchange exchange)
notifyListenersOnExchangeRemoval in interface ExchangeStorepublic AbstractExchange getExchangeById(int id)
getExchangeById in interface ExchangeStorepublic List<? extends ClientStatistics> getClientStatistics()
getClientStatistics in interface ExchangeStorepublic void init()
init in interface ExchangeStorepublic void collect(ExchangeCollector collector)
collect in interface ExchangeStorepublic long getLastModified()
getLastModified in interface ExchangeStorepublic void waitForModification(long lastKnownModification)
throws InterruptedException
ExchangeStorewaitForModification in interface ExchangeStoreInterruptedExceptionCopyright © 2021. All Rights Reserved.