public final class HazelcastClientCachingProvider extends AbstractHazelcastCachingProvider
CachingProvider
.
Used internally by HazelcastCachingProvider
when
the JCache type is configured as client
.
This implementation creates a new singleton HazelcastInstance
client. 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 |
---|
HazelcastClientCachingProvider() |
Modifier and Type | Method and Description |
---|---|
protected <T extends AbstractHazelcastCacheManager> |
createCacheManager(HazelcastInstance instance,
URI uri,
ClassLoader classLoader,
Properties properties) |
static HazelcastClientCachingProvider |
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 HazelcastClientCachingProvider 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 © 2018 Hazelcast, Inc.. All Rights Reserved.