public class LDCache extends Object implements LDCachingService
LDCachingService.RefreshOpts| Constructor and Description |
|---|
LDCache(CacheConfiguration config,
LDCachingBackend backend)
Create a new instance of LDCache using the provided LDCache configuration and backend.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Manually expire all cached resources.
|
boolean |
contains(org.openrdf.model.URI resource)
Return true in case the cache contains an entry for the resource given as argument.
|
void |
expire(org.openrdf.model.URI resource)
Manually expire the caching information for the given resource.
|
org.openrdf.model.Model |
get(org.openrdf.model.URI resource,
LDCachingService.RefreshOpts... options)
Refresh and return the resource passed as argument.
|
LDClientService |
getClient() |
void |
refresh(org.openrdf.model.URI resource,
LDCachingService.RefreshOpts... options)
Refresh the resource passed as argument.
|
void |
reload()
Reload configuration and initialise LDClient.
|
void |
shutdown()
Shutdown the caching service and free all occupied runtime resources.
|
public LDCache(CacheConfiguration config, LDCachingBackend backend)
config - backend - public void reload()
public void refresh(org.openrdf.model.URI resource,
LDCachingService.RefreshOpts... options)
refresh in interface LDCachingServiceresource - the resource to refreshoptions - options for refreshingpublic org.openrdf.model.Model get(org.openrdf.model.URI resource,
LDCachingService.RefreshOpts... options)
get in interface LDCachingServiceresource - the resource to retrieveoptions - options for refreshingpublic void expire(org.openrdf.model.URI resource)
expire in interface LDCachingServiceresource - the resource to expire.public boolean contains(org.openrdf.model.URI resource)
contains in interface LDCachingServiceresource - the resource to checkpublic void clear()
clear in interface LDCachingServicepublic void shutdown()
shutdown in interface LDCachingServicepublic LDClientService getClient()
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.