public final class HazelcastServerCachingProvider extends AbstractHazelcastCachingProvider
CachingProvider
.
Used internally by HazelcastCachingProvider
when
the JCache type is configured as server
.
This implementation creates a new singleton HazelcastInstance
member. This instance is provided into the created managers.
If you need to use your already created HazelcastInstance, you can directly
create a provider using
createCachingProvider(com.hazelcast.core.HazelcastInstance)
.
CachingProvider
hazelcastInstance, LOGGER, NAMED_JCACHE_HZ_INSTANCE, namedDefaultHzInstance, SHARED_JCACHE_INSTANCE_NAME
Constructor and Description |
---|
HazelcastServerCachingProvider() |
Modifier and Type | Method and Description |
---|---|
protected <T extends AbstractHazelcastCacheManager> |
createCacheManager(HazelcastInstance instance,
URI uri,
ClassLoader classLoader,
Properties properties) |
static HazelcastServerCachingProvider |
createCachingProvider(HazelcastInstance hazelcastInstance)
Helper method for creating caching provider for testing, etc.
|
protected HazelcastInstance |
getOrCreateInstance(URI uri,
ClassLoader classLoader,
Properties properties) |
String |
toString() |
close, close, close, getCacheManager, getCacheManager, getCacheManager, getDefaultClassLoader, getDefaultProperties, getDefaultURI, isConfigLocation, isSupported
public static HazelcastServerCachingProvider createCachingProvider(HazelcastInstance hazelcastInstance)
protected <T extends AbstractHazelcastCacheManager> T createCacheManager(HazelcastInstance instance, URI uri, ClassLoader classLoader, Properties properties)
createCacheManager
in class AbstractHazelcastCachingProvider
protected HazelcastInstance getOrCreateInstance(URI uri, ClassLoader classLoader, Properties properties) throws URISyntaxException, IOException
getOrCreateInstance
in class AbstractHazelcastCachingProvider
URISyntaxException
IOException
Copyright © 2020 Hazelcast, Inc.. All Rights Reserved.