|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RefreshableDataStore
Extends the interface with an update functionality for UAS data in the store.
| Field Summary | |
|---|---|
static java.lang.String |
MSG_FAULTY_CONTENT
Message for the log if the read content can not be processed correctly |
static java.lang.String |
MSG_URL_NOT_READABLE
Message for the log if the UAS data can not be read from the given URL |
| Fields inherited from interface net.sf.uadetector.datastore.DataStore |
|---|
DEFAULT_CHARSET, DEFAULT_DATA_URL, DEFAULT_VERSION_URL |
| Method Summary | |
|---|---|
DataStore |
getFallback()
This method returns a data store which will be used during start up and can be used in emergency cases. |
UpdateOperation |
getUpdateOperation()
Returns the update operation of this data store which can be triggered within an executor service. |
void |
refresh()
Triggers the update of the DataStore. |
| Methods inherited from interface net.sf.uadetector.datastore.DataStore |
|---|
getCharset, getData, getDataReader, getDataUrl, getVersionUrl |
| Field Detail |
|---|
static final java.lang.String MSG_FAULTY_CONTENT
static final java.lang.String MSG_URL_NOT_READABLE
| Method Detail |
|---|
@Nonnull DataStore getFallback()
This data store will be used instantly during initialization to avoid long initializations times of an
UserAgentStringParser, especially when reading data by a network connection.
@Nonnull UpdateOperation getUpdateOperation()
void refresh()
DataStore. When this action is executed, the current data URL will be read in
and the DataReader parses and builds a new Data instance. Finally, the currently set Data
reference will be replaced by the new one.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||