public class GuavaMetadataCache extends Object implements MetadataCache
| Constructor and Description |
|---|
GuavaMetadataCache() |
| Modifier and Type | Method and Description |
|---|---|
void |
clearCache()
Clears the cache of all content.
|
org.apache.olingo.odata2.api.edm.Edm |
getEdm(String URL,
org.apache.http.client.HttpClient httpClient,
Map<String,String> headers,
ErrorResultHandler<?> errorHandler,
Boolean getMetadataFromCache) |
org.apache.olingo.odata2.api.edm.Edm |
getEdm(String URL,
org.apache.http.client.HttpClient httpClient,
Map<String,String> headers,
ErrorResultHandler<?> errorHandler,
Boolean getMetadataFromCache,
URL metadataFilePath)
This method gets the metadata from cache if getMetadataCache boolean is set to true.
|
org.apache.olingo.odata2.api.edm.Edm |
getEdm(String URL,
org.apache.http.client.HttpClient httpClient,
Map<String,String> headers,
ErrorResultHandler<?> errorHandler,
Boolean getMetadataFromCache,
URL metadataFilePath,
com.sap.cloud.sdk.cloudplatform.cache.CacheKey cacheKey,
Boolean isCacheRefresh)
This method gets the metadata from cache if getMetadataCache boolean is set to true.
|
void |
removeEntry(com.sap.cloud.sdk.cloudplatform.cache.CacheKey cacheKey)
Removes the metadata from the cache identified by the cache key.
|
void |
removeEntry(String completeUrl) |
public org.apache.olingo.odata2.api.edm.Edm getEdm(String URL, org.apache.http.client.HttpClient httpClient, Map<String,String> headers, ErrorResultHandler<?> errorHandler, Boolean getMetadataFromCache) throws ODataException
getEdm in interface MetadataCacheODataExceptionpublic org.apache.olingo.odata2.api.edm.Edm getEdm(String URL, org.apache.http.client.HttpClient httpClient, Map<String,String> headers, ErrorResultHandler<?> errorHandler, Boolean getMetadataFromCache, URL metadataFilePath, com.sap.cloud.sdk.cloudplatform.cache.CacheKey cacheKey, Boolean isCacheRefresh) throws ODataException
getEdm in interface MetadataCacheODataExceptionpublic org.apache.olingo.odata2.api.edm.Edm getEdm(String URL, org.apache.http.client.HttpClient httpClient, Map<String,String> headers, ErrorResultHandler<?> errorHandler, Boolean getMetadataFromCache, URL metadataFilePath) throws ODataException
getEdm in interface MetadataCacheODataExceptionpublic void removeEntry(String completeUrl)
removeEntry in interface MetadataCachepublic void removeEntry(com.sap.cloud.sdk.cloudplatform.cache.CacheKey cacheKey)
removeEntry in interface MetadataCachekey - Cache key representing the metadata cache to be removedpublic void clearCache()
clearCache in interface MetadataCacheCopyright © 2020 SAP. All Rights Reserved.