Interface GlueSchemaRegistryCache<K,V,Stats>
-
public interface GlueSchemaRegistryCache<K,V,Stats>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddelete(K key)Deletes the given element from the cache.voidflushCache()Flushes the content of the cache.Vget(K key)Get the Value corresponding to the key.longgetCacheSize()Get the current cache size.StatsgetCacheStats()Get the cache stats.voidput(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 entryvalue- 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
-
-