com.hazelcast.cache.impl
Class HazelcastServerCachingProvider

java.lang.Object
  extended by com.hazelcast.cache.impl.AbstractHazelcastCachingProvider
      extended by 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

Field Summary
 
Fields inherited from class com.hazelcast.cache.impl.AbstractHazelcastCachingProvider
defaultClassLoader, defaultURI, hazelcastInstance, LOGGER
 
Constructor Summary
HazelcastServerCachingProvider()
           
 
Method Summary
static HazelcastServerCachingProvider createCachingProvider(HazelcastInstance hazelcastInstance)
          Helper method for creating caching provider for testing, etc.
protected  HazelcastServerCacheManager createHazelcastCacheManager(URI uri, ClassLoader classLoader, Properties properties)
           
 String toString()
           
 
Methods inherited from class com.hazelcast.cache.impl.AbstractHazelcastCachingProvider
close, close, close, getCacheManager, getCacheManager, getCacheManager, getDefaultClassLoader, getDefaultProperties, getDefaultURI, getManagerClassLoader, getManagerUri, isSupported, shutdownHazelcastInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HazelcastServerCachingProvider

public HazelcastServerCachingProvider()
Method Detail

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.