|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.hazelcast.cache.HazelcastCachingProvider
public final class HazelcastCachingProvider
This class is the Hazelcast JCache public CachingProvider implementation. This provider
class acts as the commonly used entry point for the JCache SPI to register Hazelcast JCache as an eligible JCache
implementation.
Main purpose of this provider implementation is to delegate to the user-selected internal
CachingProvider implementation.
Hazelcast uses two internal CachingProviders depending on the environment:
CachingProvider implementations are found (client and server), the client
provider has precedence. To select the server provider use the above mentioned property.
| Field Summary | |
|---|---|
static String |
HAZELCAST_CONFIG_LOCATION
Hazelcast config location property |
static String |
HAZELCAST_INSTANCE_NAME
Hazelcast instance name property |
| Constructor Summary | |
|---|---|
HazelcastCachingProvider()
|
|
| Method Summary | |
|---|---|
void |
close()
|
void |
close(ClassLoader classLoader)
|
void |
close(URI uri,
ClassLoader classLoader)
|
javax.cache.CacheManager |
getCacheManager()
|
javax.cache.CacheManager |
getCacheManager(URI uri,
ClassLoader classLoader)
|
javax.cache.CacheManager |
getCacheManager(URI uri,
ClassLoader classLoader,
Properties properties)
|
ClassLoader |
getDefaultClassLoader()
|
Properties |
getDefaultProperties()
|
URI |
getDefaultURI()
|
boolean |
isSupported(javax.cache.configuration.OptionalFeature optionalFeature)
|
static Properties |
propertiesByInstanceName(String instanceName)
Create the Properties with the provided instance name. |
static Properties |
propertiesByLocation(String configFileLocation)
Create the Properties with the provided config file location. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String HAZELCAST_CONFIG_LOCATION
public static final String HAZELCAST_INSTANCE_NAME
| Constructor Detail |
|---|
public HazelcastCachingProvider()
| Method Detail |
|---|
public static Properties propertiesByLocation(String configFileLocation)
Properties with the provided config file location.
configFileLocation - config file location to configure
public static Properties propertiesByInstanceName(String instanceName)
Properties with the provided instance name.
instanceName - instance name to configure
public javax.cache.CacheManager getCacheManager(URI uri,
ClassLoader classLoader,
Properties properties)
getCacheManager in interface javax.cache.spi.CachingProviderpublic ClassLoader getDefaultClassLoader()
getDefaultClassLoader in interface javax.cache.spi.CachingProviderpublic URI getDefaultURI()
getDefaultURI in interface javax.cache.spi.CachingProviderpublic Properties getDefaultProperties()
getDefaultProperties in interface javax.cache.spi.CachingProvider
public javax.cache.CacheManager getCacheManager(URI uri,
ClassLoader classLoader)
getCacheManager in interface javax.cache.spi.CachingProviderpublic javax.cache.CacheManager getCacheManager()
getCacheManager in interface javax.cache.spi.CachingProviderpublic void close()
close in interface Closeableclose in interface javax.cache.spi.CachingProviderpublic void close(ClassLoader classLoader)
close in interface javax.cache.spi.CachingProvider
public void close(URI uri,
ClassLoader classLoader)
close in interface javax.cache.spi.CachingProviderpublic boolean isSupported(javax.cache.configuration.OptionalFeature optionalFeature)
isSupported in interface javax.cache.spi.CachingProviderpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||