| Modifier and Type | Method and Description |
|---|---|
void |
delete(Schema key)
Deletes the given element from the cache.
|
void |
flushCache()
Flushes the content of the cache.
|
UUID |
get(Schema key)
Get the Value corresponding to the key.
|
long |
getCacheSize()
Get the current cache size.
|
com.google.common.cache.CacheStats |
getCacheStats()
Get the cache stats.
|
static AWSSchemaRegistrySerializerCache |
getInstance(GlueSchemaRegistryConfiguration configs)
Singleton instantiation helper.
|
void |
put(Schema key,
UUID value)
Put the key and value in the cache for subsequent use.
|
public static AWSSchemaRegistrySerializerCache getInstance(@NonNull GlueSchemaRegistryConfiguration configs)
configs - configuration elementspublic UUID get(Schema key)
AWSCachepublic void put(Schema key, UUID value)
AWSCachepublic void delete(Schema key)
AWSCachepublic void flushCache()
AWSCacheflushCache in interface AWSCache<Schema,UUID,com.google.common.cache.CacheStats>public long getCacheSize()
AWSCachegetCacheSize in interface AWSCache<Schema,UUID,com.google.common.cache.CacheStats>public com.google.common.cache.CacheStats getCacheStats()
AWSCachegetCacheStats in interface AWSCache<Schema,UUID,com.google.common.cache.CacheStats>Copyright © 2021. All rights reserved.