Class FederatedStoreCacheTransient
- java.lang.Object
-
- uk.gov.gchq.gaffer.cache.Cache<String,Pair<GraphSerialisable,byte[]>>
-
- uk.gov.gchq.gaffer.federatedstore.FederatedStoreCacheTransient
-
@Deprecated public class FederatedStoreCacheTransient extends Cache<String,Pair<GraphSerialisable,byte[]>>
Deprecated.Federated store will use the default cache implementation going forward.
-
-
Field Summary
Fields Modifier and Type Field Description static String
ERROR_ADDING_GRAPH_TO_CACHE_GRAPH_ID_S
Deprecated.static String
FEDERATED_STORE_CACHE_SERVICE_NAME
Deprecated.
-
Constructor Summary
Constructors Constructor Description FederatedStoreCacheTransient(String suffixFederatedStoreCacheName)
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
addGraphToCache(Graph graph, byte[] access, boolean overwrite)
Deprecated.Add the specifiedGraph
to the cache.void
addGraphToCache(GraphSerialisable graphSerialisable, byte[] access, boolean overwrite)
Deprecated.Add the specifiedGraph
to the cache.void
deleteGraphFromCache(String graphId)
Deprecated.byte[]
getAccessFromCache(String graphId)
Deprecated.Iterable<String>
getAllGraphIds()
Deprecated.Get all the ID's related to theGraph
's stored in the cache.static String
getCacheNameFrom(String suffixFederatedStoreCacheName)
Deprecated.GraphSerialisable
getGraphFromCache(String graphId)
Deprecated.Retrieve theGraphSerialisable
with the specified ID from the cache.GraphSerialisable
getGraphSerialisableFromCache(String graphId)
Deprecated.Retrieve theGraph
with the specified ID from the cache.String
getSuffixCacheName()
Deprecated.-
Methods inherited from class uk.gov.gchq.gaffer.cache.Cache
clearCache, contains, deleteFromCache, getAllKeys, getCache, getCacheName, getCacheNameFrom, getFromCache, getSuffixCacheNameWithoutPrefix
-
-
-
-
Field Detail
-
ERROR_ADDING_GRAPH_TO_CACHE_GRAPH_ID_S
public static final String ERROR_ADDING_GRAPH_TO_CACHE_GRAPH_ID_S
Deprecated.- See Also:
- Constant Field Values
-
FEDERATED_STORE_CACHE_SERVICE_NAME
public static final String FEDERATED_STORE_CACHE_SERVICE_NAME
Deprecated.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
FederatedStoreCacheTransient
public FederatedStoreCacheTransient(String suffixFederatedStoreCacheName)
Deprecated.
-
-
Method Detail
-
getCacheNameFrom
public static String getCacheNameFrom(String suffixFederatedStoreCacheName)
Deprecated.
-
getSuffixCacheName
public String getSuffixCacheName()
Deprecated.
-
getAllGraphIds
public Iterable<String> getAllGraphIds()
Deprecated.Get all the ID's related to theGraph
's stored in the cache.- Returns:
- Iterable of all the Graph ID's within the cache.
-
addGraphToCache
public void addGraphToCache(Graph graph, byte[] access, boolean overwrite) throws CacheOperationException
Deprecated.Add the specifiedGraph
to the cache.- Parameters:
graph
- theGraph
to be addedoverwrite
- if true, overwrite any graphs already in the cache with the same IDaccess
- Access for the graph being stored.- Throws:
CacheOperationException
- if issues adding to cache
-
addGraphToCache
public void addGraphToCache(GraphSerialisable graphSerialisable, byte[] access, boolean overwrite) throws CacheOperationException
Deprecated.Add the specifiedGraph
to the cache.- Parameters:
graphSerialisable
- the serialisedGraph
to be addedaccess
- Access for the graph being stored.overwrite
- if true, overwrite any graphs already in the cache with the same ID- Throws:
CacheOperationException
- if issues adding to cache
-
deleteGraphFromCache
public void deleteGraphFromCache(String graphId)
Deprecated.
-
getGraphFromCache
public GraphSerialisable getGraphFromCache(String graphId) throws CacheOperationException
Deprecated.Retrieve theGraphSerialisable
with the specified ID from the cache.- Parameters:
graphId
- the ID of theGraph
to retrieve- Returns:
- the
GraphSerialisable
related to the specified ID - Throws:
CacheOperationException
- exception
-
getGraphSerialisableFromCache
public GraphSerialisable getGraphSerialisableFromCache(String graphId) throws CacheOperationException
Deprecated.Retrieve theGraph
with the specified ID from the cache.- Parameters:
graphId
- the ID of theGraph
to retrieve- Returns:
- the
Graph
related to the specified ID - Throws:
CacheOperationException
- exception
-
getAccessFromCache
public byte[] getAccessFromCache(String graphId) throws CacheOperationException
Deprecated.- Throws:
CacheOperationException
-
-