public final class HazelcastServerCachingProvider extends AbstractHazelcastCachingProvider
This implementation is used by HazelcastCachingProvider
internally when server type is configured.
This implementation creates a new singleton hazelcastInstance node. 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
defaultClassLoader, defaultURI, hazelcastInstance, INVALID_HZ_INSTANCE_SPECIFICATION_MESSAGE, LOGGER, NAMED_JCACHE_HZ_INSTANCE, namedDefaultHzInstance, SHARED_JCACHE_INSTANCE_NAME, SUPPORTED_SCHEMES
Constructor and Description |
---|
HazelcastServerCachingProvider() |
Modifier and Type | Method and Description |
---|---|
protected HazelcastServerCacheManager |
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 |
getDefaultInstance() |
protected HazelcastInstance |
getOrCreateInstance(URI uri,
ClassLoader classLoader,
Properties properties) |
String |
toString() |
close, close, close, createHazelcastCacheManager, getCacheManager, getCacheManager, getCacheManager, getDefaultClassLoader, getDefaultProperties, getDefaultURI, getManagerClassLoader, getManagerUri, isConfigLocation, isSupported, shutdownHazelcastInstance
public static HazelcastServerCachingProvider createCachingProvider(HazelcastInstance hazelcastInstance)
hazelcastInstance
- protected HazelcastServerCacheManager 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
protected HazelcastInstance getDefaultInstance()
Copyright © 2018 Hazelcast, Inc.. All Rights Reserved.