public abstract class ObservableDataProvider<TOut> extends DataProvider<TOut>
DataProvider
which adds the support to listen for possible data changesModifier 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, toString
public ObservableDataProvider(String uriFormat, SdkInternalConfiguration config, LogHttpDataFetcher logHttpDataFetcher, Deserializer deserializer)
public abstract TOut getData() throws DataProviderException
DataProvider
getData
in class DataProvider<TOut>
DataProviderException
public abstract void registerWatcher(Class watcherClazz, ObservableDataProvider.DataProviderWatcher watcher)
public abstract boolean logErrors()
public TOut getData(String... args) throws DataProviderException
DataProvider
getData
in class DataProvider<TOut>
args
- that are used with the supplied URI formatDataProviderException
public TOut getData(Locale locale, String... args) throws DataProviderException
DataProvider
getData
in class DataProvider<TOut>
locale
- the locale that is used with the supplied URI formatargs
- that are used with the supplied URI formatDataProviderException
public DataWrapper<TOut> getDataWithAdditionalInfo(Locale locale, String... args) throws DataProviderException
DataProvider
getDataWithAdditionalInfo
in class DataProvider<TOut>
locale
- the locale that is used with the supplied URI formatargs
- that are used with the supplied URI formatDataWrapper
instanceDataProviderException
Copyright © 2016–2025. All rights reserved.