Class HazelcastClientCachingProvider

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, javax.cache.spi.CachingProvider

    public class HazelcastClientCachingProvider
    extends java.lang.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 in Caching.
       
       // 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();
       
       
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      void close​(java.lang.ClassLoader classLoader)  
      void close​(java.net.URI uri, java.lang.ClassLoader classLoader)  
      javax.cache.CacheManager getCacheManager()  
      javax.cache.CacheManager getCacheManager​(java.net.URI uri, java.lang.ClassLoader classLoader)  
      javax.cache.CacheManager getCacheManager​(java.net.URI uri, java.lang.ClassLoader classLoader, java.util.Properties properties)  
      java.lang.ClassLoader getDefaultClassLoader()  
      java.util.Properties getDefaultProperties()  
      java.net.URI getDefaultURI()  
      boolean isSupported​(javax.cache.configuration.OptionalFeature optionalFeature)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HazelcastClientCachingProvider

        public HazelcastClientCachingProvider()
    • Method Detail

      • getCacheManager

        public javax.cache.CacheManager getCacheManager​(java.net.URI uri,
                                                        java.lang.ClassLoader classLoader,
                                                        java.util.Properties properties)
        Specified by:
        getCacheManager in interface javax.cache.spi.CachingProvider
      • getDefaultClassLoader

        public java.lang.ClassLoader getDefaultClassLoader()
        Specified by:
        getDefaultClassLoader in interface javax.cache.spi.CachingProvider
      • getDefaultURI

        public java.net.URI getDefaultURI()
        Specified by:
        getDefaultURI in interface javax.cache.spi.CachingProvider
      • getDefaultProperties

        public java.util.Properties getDefaultProperties()
        Specified by:
        getDefaultProperties in interface javax.cache.spi.CachingProvider
      • getCacheManager

        public javax.cache.CacheManager getCacheManager​(java.net.URI uri,
                                                        java.lang.ClassLoader classLoader)
        Specified by:
        getCacheManager in interface javax.cache.spi.CachingProvider
      • getCacheManager

        public javax.cache.CacheManager getCacheManager()
        Specified by:
        getCacheManager in interface javax.cache.spi.CachingProvider
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface javax.cache.spi.CachingProvider
        Specified by:
        close in interface java.io.Closeable
      • close

        public void close​(java.lang.ClassLoader classLoader)
        Specified by:
        close in interface javax.cache.spi.CachingProvider
      • close

        public void close​(java.net.URI uri,
                          java.lang.ClassLoader classLoader)
        Specified by:
        close in interface javax.cache.spi.CachingProvider
      • isSupported

        public boolean isSupported​(javax.cache.configuration.OptionalFeature optionalFeature)
        Specified by:
        isSupported in interface javax.cache.spi.CachingProvider