Package org.openstreetmap.josm.io
Class OsmApi.CapabilitiesCache
java.lang.Object
org.openstreetmap.josm.io.CacheCustomContent<OsmTransferException>
org.openstreetmap.josm.io.OsmApi.CapabilitiesCache
- Enclosing class:
- OsmApi
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Stringprivate final booleanprivate final ProgressMonitorFields inherited from class org.openstreetmap.josm.io.CacheCustomContent
INTERVAL_ALWAYS, INTERVAL_DAILY, INTERVAL_HOURLY, INTERVAL_MONTHLY, INTERVAL_NEVER, INTERVAL_WEEKLY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanChecks underlying resource is not accessed in offline mode.protected byte[]This function will be executed when an update is required.Methods inherited from class org.openstreetmap.josm.io.CacheCustomContent
flushData, getData, getDataString, isCacheValid, updateForceString, updateIfRequired, updateIfRequiredString
-
Field Details
-
CAPABILITIES
- See Also:
-
monitor
-
fastFail
-
-
Constructor Details
-
CapabilitiesCache
CapabilitiesCache(ProgressMonitor monitor, boolean fastFail)
-
-
Method Details
-
isOffline
Description copied from class:CacheCustomContentChecks underlying resource is not accessed in offline mode.- Specified by:
isOfflinein classCacheCustomContent<OsmTransferException>- Returns:
- whether resource is accessed in offline mode
-
updateData
Description copied from class:CacheCustomContentThis function will be executed when an update is required. It has to be implemented by the inheriting class and should use a worker if it has a long wall time as the function is executed in the current thread.- Specified by:
updateDatain classCacheCustomContent<OsmTransferException>- Returns:
- the data to cache
- Throws:
OsmTransferException
-