com.hazelcast.cache.impl
Class HazelcastServerCachingProvider
java.lang.Object
com.hazelcast.cache.impl.AbstractHazelcastCachingProvider
com.hazelcast.cache.impl.HazelcastServerCachingProvider
- All Implemented Interfaces:
- Closeable, javax.cache.spi.CachingProvider
public final class HazelcastServerCachingProvider
- extends AbstractHazelcastCachingProvider
Provides server cachingProvider implementation.
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)
.
- See Also:
CachingProvider
Methods inherited from class com.hazelcast.cache.impl.AbstractHazelcastCachingProvider |
close, close, close, getCacheManager, getCacheManager, getCacheManager, getDefaultClassLoader, getDefaultProperties, getDefaultURI, getManagerClassLoader, getManagerUri, isSupported, shutdownHazelcastInstance |
HazelcastServerCachingProvider
public HazelcastServerCachingProvider()
createCachingProvider
public static HazelcastServerCachingProvider createCachingProvider(HazelcastInstance hazelcastInstance)
- Helper method for creating caching provider for testing, etc.
- Parameters:
hazelcastInstance
-
- Returns:
- HazelcastServerCachingProvider
createHazelcastCacheManager
protected HazelcastServerCacheManager createHazelcastCacheManager(URI uri,
ClassLoader classLoader,
Properties properties)
- Specified by:
createHazelcastCacheManager
in class AbstractHazelcastCachingProvider
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.