com.hazelcast.cache.impl
Class AbstractHazelcastCachingProvider
java.lang.Object
com.hazelcast.cache.impl.AbstractHazelcastCachingProvider
- All Implemented Interfaces:
- Closeable, javax.cache.spi.CachingProvider
- Direct Known Subclasses:
- HazelcastClientCachingProvider, HazelcastServerCachingProvider
public abstract class AbstractHazelcastCachingProvider
- extends Object
- implements javax.cache.spi.CachingProvider
Abstract CachingProvider
implementation providing shared functionality to server and client caching
providers.
This class encapsulates following details:
- Hazelcast instance for default uri and default class loader.
- default uri.
- default class loader.
- accessing the singleton
CacheManager
by uri and class loader.
- managing lifecycle of cache managers.
- See Also:
CachingProvider
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOGGER
protected static final ILogger LOGGER
hazelcastInstance
protected volatile HazelcastInstance hazelcastInstance
defaultClassLoader
protected final ClassLoader defaultClassLoader
defaultURI
protected final URI defaultURI
AbstractHazelcastCachingProvider
public AbstractHazelcastCachingProvider()
getCacheManager
public javax.cache.CacheManager getCacheManager(URI uri,
ClassLoader classLoader,
Properties properties)
- Specified by:
getCacheManager
in interface javax.cache.spi.CachingProvider
getDefaultClassLoader
public ClassLoader getDefaultClassLoader()
- Specified by:
getDefaultClassLoader
in interface javax.cache.spi.CachingProvider
getDefaultURI
public URI getDefaultURI()
- Specified by:
getDefaultURI
in interface javax.cache.spi.CachingProvider
getDefaultProperties
public Properties getDefaultProperties()
- Specified by:
getDefaultProperties
in interface javax.cache.spi.CachingProvider
getCacheManager
public javax.cache.CacheManager getCacheManager(URI uri,
ClassLoader classLoader)
- Specified by:
getCacheManager
in interface javax.cache.spi.CachingProvider
getCacheManager
public javax.cache.CacheManager getCacheManager()
- Specified by:
getCacheManager
in interface javax.cache.spi.CachingProvider
close
public void close()
- Specified by:
close
in interface Closeable
- Specified by:
close
in interface javax.cache.spi.CachingProvider
shutdownHazelcastInstance
protected void shutdownHazelcastInstance()
close
public void close(ClassLoader classLoader)
- Specified by:
close
in interface javax.cache.spi.CachingProvider
close
public void close(URI uri,
ClassLoader classLoader)
- Specified by:
close
in interface javax.cache.spi.CachingProvider
isSupported
public boolean isSupported(javax.cache.configuration.OptionalFeature optionalFeature)
- Specified by:
isSupported
in interface javax.cache.spi.CachingProvider
getManagerUri
protected URI getManagerUri(URI uri)
getManagerClassLoader
protected ClassLoader getManagerClassLoader(ClassLoader classLoader)
createHazelcastCacheManager
protected abstract <T extends AbstractHazelcastCacheManager> T createHazelcastCacheManager(URI uri,
ClassLoader classLoader,
Properties managerProperties)
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.