public class FixerAmountMoneyExchangeRateRetriever extends CachedOnlineAmountMoneyExchangeRateRetriever
| Modifier and Type | Field and Description |
|---|---|
static String |
INITIAL_RESOURCE_RESOURCE_NAME_DEFAULT |
FILE_CACHE_EXPIRATION_MILLIS_DEFAULT| Constructor and Description |
|---|
FixerAmountMoneyExchangeRateRetriever(File fileCacheFile) |
FixerAmountMoneyExchangeRateRetriever(File fileCacheFile,
long fileCacheExpirationMillis) |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.commons.lang3.tuple.Pair<Map<org.jscience.economics.money.Currency,Double>,org.jscience.economics.money.Currency> |
fetchResult()
Allows to retrieve the complete cache at once which makes sense for
subclasses which will retrieve a list of currency exchange rates rather
than a single result (probably all).
|
protected String |
getUrl() |
fetchConversionRate, getResult, getSupportedCurrenciesretrieveExchangeRatepublic static final String INITIAL_RESOURCE_RESOURCE_NAME_DEFAULT
public FixerAmountMoneyExchangeRateRetriever(File fileCacheFile)
public FixerAmountMoneyExchangeRateRetriever(File fileCacheFile, long fileCacheExpirationMillis)
protected org.apache.commons.lang3.tuple.Pair<Map<org.jscience.economics.money.Currency,Double>,org.jscience.economics.money.Currency> fetchResult() throws AmountMoneyExchangeRateRetrievalException
CachedOnlineAmountMoneyExchangeRateRetrieverfetchResult in class CachedOnlineAmountMoneyExchangeRateRetrieverAmountMoneyExchangeRateRetrievalException - if an exception related
to a network failure or missing network connection occuredprotected String getUrl()
getUrl in class CachedOnlineAmountMoneyExchangeRateRetrieverCopyright © 2018. All rights reserved.