Interface GlueSchemaRegistryCache<K,V,Stats>
public interface GlueSchemaRegistryCache<K,V,Stats>
-
Method Summary
Modifier and TypeMethodDescriptionvoidDeletes the given element from the cache.voidFlushes the content of the cache.Get the Value corresponding to the key.longGet the current cache size.Get the cache stats.voidPut the key and value in the cache for subsequent use.
-
Method Details
-
get
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
Put the key and value in the cache for subsequent use.- Parameters:
key- key for cache entryvalue- value of the cache entry
-
delete
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
-