Package com.hazelcast.cache
Class HazelcastMemberCachingProvider
java.lang.Object
com.hazelcast.cache.HazelcastMemberCachingProvider
- All Implemented Interfaces:
Closeable
,AutoCloseable
,javax.cache.spi.CachingProvider
public class HazelcastMemberCachingProvider
extends Object
implements javax.cache.spi.CachingProvider
Member-side
CachingProvider
implementation. Its fully-qualified
class name can be used to request the member-side CachingProvider
implementation. Examples:
-
Programmatically, using
Caching.getCachingProvider(String)
:CachingProvider memberSideCachingProvider = Caching.getCachingProvider("com.hazelcast.cache.HazelcastMemberCachingProvider");
-
Declaratively, using the
javax.cache.spi.CachingProvider
system property as specified inCaching
.// alternatively, set the system property on the java command line: // java -Djavax.cache.spi.CachingProvider=com.hazelcast.cache.HazelcastMemberCachingProvider System.setProperty("javax.cache.spi.CachingProvider", "com.hazelcast.cache.HazelcastMemberCachingProvider"); CachingProvider memberSideCachingProvider = Caching.getCachingProvider();
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
close
(ClassLoader classLoader) void
close
(URI uri, ClassLoader classLoader) javax.cache.CacheManager
javax.cache.CacheManager
getCacheManager
(URI uri, ClassLoader classLoader) javax.cache.CacheManager
getCacheManager
(URI uri, ClassLoader classLoader, Properties properties) boolean
isSupported
(javax.cache.configuration.OptionalFeature optionalFeature)
-
Constructor Details
-
HazelcastMemberCachingProvider
public HazelcastMemberCachingProvider()
-
-
Method Details
-
getCacheManager
public javax.cache.CacheManager getCacheManager(URI uri, ClassLoader classLoader, Properties properties) - Specified by:
getCacheManager
in interfacejavax.cache.spi.CachingProvider
-
getDefaultClassLoader
- Specified by:
getDefaultClassLoader
in interfacejavax.cache.spi.CachingProvider
-
getDefaultURI
- Specified by:
getDefaultURI
in interfacejavax.cache.spi.CachingProvider
-
getDefaultProperties
- Specified by:
getDefaultProperties
in interfacejavax.cache.spi.CachingProvider
-
getCacheManager
- Specified by:
getCacheManager
in interfacejavax.cache.spi.CachingProvider
-
getCacheManager
public javax.cache.CacheManager getCacheManager()- Specified by:
getCacheManager
in interfacejavax.cache.spi.CachingProvider
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfacejavax.cache.spi.CachingProvider
- Specified by:
close
in interfaceCloseable
-
close
- Specified by:
close
in interfacejavax.cache.spi.CachingProvider
-
close
- Specified by:
close
in interfacejavax.cache.spi.CachingProvider
-
isSupported
public boolean isSupported(javax.cache.configuration.OptionalFeature optionalFeature) - Specified by:
isSupported
in interfacejavax.cache.spi.CachingProvider
-