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 in Caching.
     
     // 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 Details

    • HazelcastMemberCachingProvider

      public HazelcastMemberCachingProvider()
  • 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