Interface GlueSchemaRegistryCache<K,​V,​Stats>


  • public interface GlueSchemaRegistryCache<K,​V,​Stats>
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void delete​(K key)
      Deletes the given element from the cache.
      void flushCache()
      Flushes the content of the cache.
      V get​(K key)
      Get the Value corresponding to the key.
      long getCacheSize()
      Get the current cache size.
      Stats getCacheStats()
      Get the cache stats.
      void put​(K key, V value)
      Put the key and value in the cache for subsequent use.
    • Method Detail

      • get

        V get​(K key)
        Get the Value corresponding to the key.
        Parameters:
        key - key for cache entry
        Returns:
        Value associated with the key. if the value is not present return null.
      • put

        void put​(K key,
                 V value)
        Put the key and value in the cache for subsequent use.
        Parameters:
        key - key for cache entry
        value - value of the cache entry
      • delete

        void delete​(K key)
        Deletes the given element from the cache.
        Parameters:
        key - key for cache entry
      • flushCache

        void flushCache()
        Flushes the content of the cache.
      • getCacheSize

        long getCacheSize()
        Get the current cache size.
        Returns:
        number of entries in the cache
      • getCacheStats

        Stats getCacheStats()
        Get the cache stats. This will give the detailed view of the cache.
        Returns:
        stats object with cache statistic information