Class CachingSchemaRegistryClient
java.lang.Object
org.apache.nifi.aws.schemaregistry.client.CachingSchemaRegistryClient
- All Implemented Interfaces:
SchemaRegistryClient
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final SchemaRegistryClientprivate final com.github.benmanes.caffeine.cache.LoadingCache<String, RecordSchema> private final com.github.benmanes.caffeine.cache.LoadingCache<org.apache.commons.lang3.tuple.Pair<String, Long>, RecordSchema> -
Constructor Summary
ConstructorsConstructorDescriptionCachingSchemaRegistryClient(SchemaRegistryClient toWrap, int cacheSize, long expirationNanos) -
Method Summary
Modifier and TypeMethodDescription
-
Field Details
-
client
-
nameCache
-
nameVersionCache
private final com.github.benmanes.caffeine.cache.LoadingCache<org.apache.commons.lang3.tuple.Pair<String,Long>, nameVersionCacheRecordSchema>
-
-
Constructor Details
-
CachingSchemaRegistryClient
public CachingSchemaRegistryClient(SchemaRegistryClient toWrap, int cacheSize, long expirationNanos)
-
-
Method Details
-
getSchema
- Specified by:
getSchemain interfaceSchemaRegistryClient
-
getSchema
- Specified by:
getSchemain interfaceSchemaRegistryClient
-