Package com.hazelcast.client.cache
Class HazelcastClientCachingProvider
java.lang.Object
com.hazelcast.client.cache.HazelcastClientCachingProvider
- All Implemented Interfaces:
Closeable
,AutoCloseable
,javax.cache.spi.CachingProvider
public class HazelcastClientCachingProvider
extends Object
implements javax.cache.spi.CachingProvider
Client-side
CachingProvider
implementation. Its fully-qualified
class name can be used to request the client-side CachingProvider
implementation. Examples:
-
Programmatically, using
Caching.getCachingProvider(String)
:CachingProvider clientSideCachingProvider = Caching.getCachingProvider("com.hazelcast.client.cache.HazelcastClientCachingProvider");
-
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.client.cache.HazelcastClientCachingProvider System.setProperty("javax.cache.spi.CachingProvider", "com.hazelcast.client.cache.HazelcastClientCachingProvider"); CachingProvider clientSideCachingProvider = 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
-
HazelcastClientCachingProvider
public HazelcastClientCachingProvider()
-
-
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
-