org.openstreetmap.atlas.utilities.caching.strategies.NoCachingStrategy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of atlas Show documentation
Show all versions of atlas Show documentation
"Library to load OSM data into an Atlas format"
package org.openstreetmap.atlas.utilities.caching.strategies;
import java.net.URI;
import java.util.Optional;
import java.util.function.Function;
import org.openstreetmap.atlas.streaming.resource.Resource;
/**
* Caching strategy that always produces a cache miss.
*
* @author lcram
*/
public class NoCachingStrategy extends AbstractCachingStrategy
{
@Override
public Optional attemptFetch(final URI resourceURI,
final Function> defaultFetcher)
{
return Optional.empty();
}
@Override
public String getName()
{
return "NoCachingStrategy";
}
@Override
public void invalidate()
{
return;
}
@Override
public void invalidate(final URI resourceURI)
{
return;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy