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 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();
     
     
  • Constructor Details

    • HazelcastClientCachingProvider

      public HazelcastClientCachingProvider()
  • Method Details

    • getCacheManager

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

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

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

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

      public javax.cache.CacheManager getCacheManager(URI uri, 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 AutoCloseable
      Specified by:
      close in interface javax.cache.spi.CachingProvider
      Specified by:
      close in interface Closeable
    • close

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

      public void close(URI uri, 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