@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)
UrlFailureCachecacheFailure in interface UrlFailureCacheurl - the url to store.public boolean hasFailedBefore(String url)
UrlFailureCachehasFailedBefore in interface UrlFailureCacheurl - the URL to test.Copyright © 2006–2022 The Apache Software Foundation. All rights reserved.