private class OsmApi.CapabilitiesCache extends CacheCustomContent<OsmTransferException>
| Modifier and Type | Field and Description |
|---|---|
private static java.lang.String |
CAPABILITIES |
private boolean |
fastFail |
private ProgressMonitor |
monitor |
INTERVAL_ALWAYS, INTERVAL_DAILY, INTERVAL_HOURLY, INTERVAL_MONTHLY, INTERVAL_NEVER, INTERVAL_WEEKLY| Constructor and Description |
|---|
CapabilitiesCache(ProgressMonitor monitor,
boolean fastFail) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkOfflineAccess()
Ensures underlying resource is not accessed in offline mode.
|
protected byte[] |
updateData()
This function will be executed when an update is required.
|
flushData, getData, getDataString, isCacheValid, updateForceString, updateIfRequired, updateIfRequiredStringprivate static final java.lang.String CAPABILITIES
private final ProgressMonitor monitor
private final boolean fastFail
CapabilitiesCache(ProgressMonitor monitor, boolean fastFail)
protected void checkOfflineAccess()
CacheCustomContentcheckOfflineAccess in class CacheCustomContent<OsmTransferException>protected byte[] updateData() throws OsmTransferException
CacheCustomContentupdateData in class CacheCustomContent<OsmTransferException>OsmTransferException