StatusCache.@Deprecated public abstract class ChangeListStatusCache extends VCSURLBasedCache
Utility class for caching URLs' change list status values. This class takes care of all cache responsibilities. Concrete subclasses are required to provide the implementation for returning uncached statuses. The cache is observable; attached observers are updated with an array of URLs whose statuses have been cleared (and hence may have changed).
| Constructor and Description |
|---|
ChangeListStatusCache()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Deprecated.
Clears the cached change list statuses for all URLs.
|
void |
clear(java.net.URL url)
Deprecated.
Clears the cached change list status for the given URL.
|
void |
clear(java.net.URL[] urls)
Deprecated.
Clears the cached change list statuses for the given URLs.
|
void |
clear(URLFilter filter)
Deprecated.
Clears the cached change list statuses for URLs accepted by the given filter.
|
protected java.lang.Object[] |
createValueArray(int length)
Deprecated.
|
ChangeListStatus |
get(java.net.URL url)
Deprecated.
Gets the status of a single URL.
|
ChangeListStatus[] |
get(java.net.URL[] urls)
Deprecated.
Gets the change list statuses for the given URLs.
|
protected abstract void |
getImpl(java.net.URL[] urls,
ChangeListStatus[] statuses)
Deprecated.
Gets current statuses for the given URLs, populating the status array.
|
protected void |
getValuesImpl(java.net.URL[] urls,
java.lang.Object[] values)
Deprecated.
|
java.net.URL[] |
search(URLFilter filter)
Deprecated.
Searches the change list status cache for URLs accepted by the given filter.
|
addCacheListener, callUnderWriteLock, clearValue, clearValues, clearValues, clearValues, clearValues, clearValuesInternal, dispose, getValue, getValueInternal, getValueInternal, getValues, getValuesImpl, isLocalCache, newLocalCache, putValueInternal, putValueInternal, removeCacheListener, runUnderWriteLock, searchValuesprotected final void getValuesImpl(java.net.URL[] urls,
java.lang.Object[] values)
throws java.lang.Exception
getValuesImpl in class VCSURLBasedCachejava.lang.Exceptionprotected final java.lang.Object[] createValueArray(int length)
createValueArray in class VCSURLBasedCachepublic final ChangeListStatus get(java.net.URL url) throws java.lang.Exception
url - the URL for the status query.java.lang.Exceptionpublic ChangeListStatus[] get(java.net.URL[] urls) throws java.lang.Exception
urls - the array of URLs for the status query.java.lang.Exception - if a critical exception occurred.public void clear()
public void clear(java.net.URL url)
url - the URL for clearing from the cache.public void clear(java.net.URL[] urls)
urls - the URLs for clearing from the cache.public void clear(URLFilter filter)
filter - a filter that accepts URLs for clearing from the cache.public java.net.URL[] search(URLFilter filter)
filter - a filter that accepts URLs to return.protected abstract void getImpl(java.net.URL[] urls,
ChangeListStatus[] statuses)
throws java.lang.Exception
urls - the array of URLs for the status query.statuses - the array of current change list statuses to populate.java.lang.Exception - if a critical exception occurred.