org.openstreetmap.josm.io
Class OsmApi.CapabilitiesCache

java.lang.Object
  extended by org.openstreetmap.josm.io.CacheCustomContent<OsmTransferException>
      extended by org.openstreetmap.josm.io.OsmApi.CapabilitiesCache
Enclosing class:
OsmApi

private class OsmApi.CapabilitiesCache
extends CacheCustomContent<OsmTransferException>


Field Summary
(package private)  boolean fastFail
           
(package private)  ProgressMonitor monitor
           
 
Fields inherited from class org.openstreetmap.josm.io.CacheCustomContent
INTERVAL_ALWAYS, INTERVAL_DAILY, INTERVAL_HOURLY, INTERVAL_MONTHLY, INTERVAL_NEVER, INTERVAL_WEEKLY
 
Constructor Summary
OsmApi.CapabilitiesCache(ProgressMonitor monitor, boolean fastFail)
           
 
Method Summary
protected  byte[] updateData()
          This function will be executed when an update is required.
 
Methods inherited from class org.openstreetmap.josm.io.CacheCustomContent
flushData, getData, getDataString, isCacheValid, updateForce, updateForceString, updateIfRequired, updateIfRequiredString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

monitor

ProgressMonitor monitor

fastFail

boolean fastFail
Constructor Detail

OsmApi.CapabilitiesCache

public OsmApi.CapabilitiesCache(ProgressMonitor monitor,
                                boolean fastFail)
Method Detail

updateData

protected byte[] updateData()
                     throws OsmTransferException
Description copied from class: CacheCustomContent
This 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:
updateData in class CacheCustomContent<OsmTransferException>
Returns:
the data to cache
Throws:
OsmTransferException


JOSM