Package org.consensusj.exchange.knowm
Class KnowmExchangeRateProvider.MonitoredCurrency
java.lang.Object
org.consensusj.exchange.knowm.KnowmExchangeRateProvider.MonitoredCurrency
- Enclosing class:
KnowmExchangeRateProvider
-
Field Summary
Modifier and TypeFieldDescriptionfinal org.knowm.xchange.currency.CurrencyPair
final List
<ExchangeRateObserver> final CurrencyUnitPair
-
Method Summary
Modifier and TypeMethodDescriptionorg.knowm.xchange.dto.marketdata.Ticker
Get Ticker from the UpdateableValueLatchboolean
void
setTicker
(org.knowm.xchange.dto.marketdata.Ticker ticker) Set the ticker object, called from polling method
-
Field Details
-
pair
-
exchangePair
-
observerList
-
-
Method Details
-
isTickerAvailable
-
getTicker
public org.knowm.xchange.dto.marketdata.Ticker getTicker() throws InterruptedException, TimeoutExceptionGet Ticker from the UpdateableValueLatch- Returns:
- ticker object
- Throws:
InterruptedException
- thread was interrupted by another threadTimeoutException
- should only happen if first request times out
-
setTicker
Set the ticker object, called from polling method- Parameters:
ticker
- ticker object
-