Package uk.gov.gchq.gaffer.cache.impl
Class HazelcastCacheService
- java.lang.Object
-
- uk.gov.gchq.gaffer.cache.impl.HazelcastCacheService
-
- All Implemented Interfaces:
ICacheService
public class HazelcastCacheService extends Object implements ICacheService
Implementation of theICacheService
interface which uses aHazelcastCache
as the cache implementation.
-
-
Constructor Summary
Constructors Constructor Description HazelcastCacheService()
-
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
-
shutdown
public void shutdown()
Description copied from interface:ICacheService
Shutdown the cache service.- Specified by:
shutdown
in interfaceICacheService
-
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
-
-