@Service(value="urlFailureCache") public class DefaultUrlFailureCache extends Object implements UrlFailureCache
Modifier and Type | Field and Description |
---|---|
private org.apache.archiva.redback.components.cache.Cache |
urlCache |
Constructor and Description |
---|
DefaultUrlFailureCache(org.apache.archiva.redback.components.cache.Cache urlCache) |
Modifier and Type | Method and Description |
---|---|
void |
cacheFailure(String url)
Store a URL in the cache as failed.
|
boolean |
hasFailedBefore(String url)
Test if a specified URL has failed before.
|
private org.apache.archiva.redback.components.cache.Cache urlCache
@Inject public DefaultUrlFailureCache(@Named(value="cache#url-failures-cache") org.apache.archiva.redback.components.cache.Cache urlCache)
public void cacheFailure(String url)
UrlFailureCache
cacheFailure
in interface UrlFailureCache
url
- the url to store.public boolean hasFailedBefore(String url)
UrlFailureCache
hasFailedBefore
in interface UrlFailureCache
url
- the URL to test.Copyright © 2006–2023 The Apache Software Foundation. All rights reserved.