public abstract class ObservableDataProvider<TOut> extends DataProvider<TOut>
DataProvider which adds the support to listen for possible data changes| Modifier and Type | Class and Description |
|---|---|
static interface |
ObservableDataProvider.DataProviderWatcher |
| Constructor and Description |
|---|
ObservableDataProvider(String uriFormat,
SdkInternalConfiguration config,
LogHttpDataFetcher logHttpDataFetcher,
Deserializer deserializer) |
| Modifier and Type | Method and Description |
|---|---|
abstract TOut |
getData()
If successful returns the requested API endpoint object
|
TOut |
getData(Locale locale,
String... args)
If successful returns the requested API endpoint object
|
TOut |
getData(String... args)
If successful returns the requested API endpoint object
|
DataWrapper<TOut> |
getDataWithAdditionalInfo(Locale locale,
String... args)
If successful returns the requested API endpoint object
|
abstract boolean |
logErrors() |
abstract void |
registerWatcher(Class watcherClazz,
ObservableDataProvider.DataProviderWatcher watcher) |
getFinalUrl, getFinalUrl, postData, streamFetchCatchEndpoint, toStringpublic ObservableDataProvider(String uriFormat, SdkInternalConfiguration config, LogHttpDataFetcher logHttpDataFetcher, Deserializer deserializer)
public abstract TOut getData() throws DataProviderException
DataProvidergetData in class DataProvider<TOut>DataProviderExceptionpublic abstract void registerWatcher(Class watcherClazz, ObservableDataProvider.DataProviderWatcher watcher)
public abstract boolean logErrors()
public TOut getData(String... args) throws DataProviderException
DataProvidergetData in class DataProvider<TOut>args - that are used with the supplied URI formatDataProviderExceptionpublic TOut getData(Locale locale, String... args) throws DataProviderException
DataProvidergetData in class DataProvider<TOut>locale - the locale that is used with the supplied URI formatargs - that are used with the supplied URI formatDataProviderExceptionpublic DataWrapper<TOut> getDataWithAdditionalInfo(Locale locale, String... args) throws DataProviderException
DataProvidergetDataWithAdditionalInfo in class DataProvider<TOut>locale - the locale that is used with the supplied URI formatargs - that are used with the supplied URI formatDataWrapper instanceDataProviderExceptionCopyright © 2016–2025. All rights reserved.