Package uk.gov.gchq.gaffer.cache.impl
Class JcsCacheService
- java.lang.Object
-
- uk.gov.gchq.gaffer.cache.impl.JcsCacheService
-
- All Implemented Interfaces:
ICacheService
public class JcsCacheService extends Object implements ICacheService
Implementation of theICacheService
interface which uses aJcsCache
as the cache implementation.
-
-
Constructor Summary
Constructors Constructor Description JcsCacheService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <K,V>
ICache<K,V>getCache(String cacheName)
Get the named cache from the cache service.void
initialise(Properties properties)
Initialise the cache service based on the suppliedProperties
object.void
shutdown()
Shutdown the cache service.-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface uk.gov.gchq.gaffer.cache.ICacheService
clearCache, getAllKeysFromCache, getAllValuesFromCache, getFromCache, putInCache, putSafeInCache, removeFromCache, sizeOfCache
-
-
-
-
Method Detail
-
initialise
public void initialise(Properties properties)
Description copied from interface:ICacheService
Initialise the cache service based on the suppliedProperties
object.- Specified by:
initialise
in interfaceICacheService
- Parameters:
properties
- the Properties object to apply to the cache service
-
getCache
public <K,V> ICache<K,V> getCache(String cacheName)
Description copied from interface:ICacheService
Get the named cache from the cache service.- Specified by:
getCache
in interfaceICacheService
- Type Parameters:
K
- The object type that acts as the key for the cacheV
- The value that is stored in the cache- Parameters:
cacheName
- the name of the cache to retrieve- Returns:
- the requested cache object
-
shutdown
public void shutdown()
Description copied from interface:ICacheService
Shutdown the cache service.- Specified by:
shutdown
in interfaceICacheService
-
-