@Qualifier(value="default") public class CachingLinkedDataSource extends LinkedDataSourceBase implements LinkedDataSource, org.springframework.beans.factory.InitializingBean
| Modifier and Type | Class and Description |
|---|---|
static class |
CachingLinkedDataSource.CacheControlFlag |
static class |
CachingLinkedDataSource.LinkedDataCacheEntry |
linkedDataRestClient| Constructor and Description |
|---|
CachingLinkedDataSource() |
| Modifier and Type | Method and Description |
|---|---|
void |
addToCache(org.apache.jena.query.Dataset dataset,
java.net.URI resource) |
void |
addToCache(org.apache.jena.query.Dataset dataset,
java.net.URI resource,
java.net.URI requesterWebID)
Add the specified dataset under the specified resource URI to the cache,
using the specified requester webID.
|
void |
afterPropertiesSet() |
void |
clear() |
org.apache.jena.query.Dataset |
getDataForResource(java.net.URI resource)
Obtains resource description of the resource identified by the given URI
|
org.apache.jena.query.Dataset |
getDataForResource(java.net.URI resource,
java.net.URI requesterWebID)
Obtains resource description of the resource identified by the given URI for
the requester identified by the given WebID.
|
void |
invalidate(java.net.URI resource)
Removes the element associated with the specified URI from the cache
|
void |
invalidate(java.net.URI resource,
java.net.URI requesterWebID) |
boolean |
isSharedCache()
Is this linkedDataSource using a shared cache?
|
void |
setCacheManager(org.springframework.cache.ehcache.EhCacheCacheManager cacheManager) |
void |
setCrawlerCallback(CrawlerCallback crawlerCallback) |
void |
setSharedCache(boolean sharedCache)
Set if this linkedDataSource is/uses a shared cache.
|
getDataForResource, getDataForResource, getDataForResourceWithPropertyPath, getDataForResourceWithPropertyPath, getDatasetWithHeadersForResource, getPreviousLinkFromDatasetWithHeaders, makeDataset, setLinkedDataRestClient, setParallelRequestsThreadpoolclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDataForResource, getDataForResource, getDataForResourceWithPropertyPath, getDataForResourceWithPropertyPathpublic void setSharedCache(boolean sharedCache)
sharedCache - public boolean isSharedCache()
public void invalidate(java.net.URI resource)
resource - public void invalidate(java.net.URI resource,
java.net.URI requesterWebID)
public void clear()
public void addToCache(org.apache.jena.query.Dataset dataset,
java.net.URI resource,
java.net.URI requesterWebID)
dataset - resource - requesterWebID - (may be null, in which case the resource is added to
the global cache)public void addToCache(org.apache.jena.query.Dataset dataset,
java.net.URI resource)
public org.apache.jena.query.Dataset getDataForResource(java.net.URI resource,
java.net.URI requesterWebID)
LinkedDataSourcegetDataForResource in interface LinkedDataSourcegetDataForResource in class LinkedDataSourceBaseresource - URI of the resourcerequesterWebID - WebID of the entity requesting the resourcepublic org.apache.jena.query.Dataset getDataForResource(java.net.URI resource)
LinkedDataSourcegetDataForResource in interface LinkedDataSourcegetDataForResource in class LinkedDataSourceBasepublic void afterPropertiesSet()
throws java.lang.Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanjava.lang.Exceptionpublic void setCacheManager(org.springframework.cache.ehcache.EhCacheCacheManager cacheManager)
@Autowired(required=false) public void setCrawlerCallback(CrawlerCallback crawlerCallback)
Copyright © 2019. All Rights Reserved.