public class SchemaMetadataCache
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
SchemaMetadataCache.Key |
static interface |
SchemaMetadataCache.SchemaMetadataFetcher |
| Constructor and Description |
|---|
SchemaMetadataCache(java.lang.Long size,
java.lang.Long expiryInSecs,
SchemaMetadataCache.SchemaMetadataFetcher schemaMetadataFetcher) |
| Modifier and Type | Method and Description |
|---|---|
com.hortonworks.registries.schemaregistry.SchemaMetadataInfo |
get(SchemaMetadataCache.Key key) |
com.hortonworks.registries.schemaregistry.SchemaMetadataInfo |
getIfPresent(SchemaMetadataCache.Key key) |
void |
invalidateSchemaMetadata(SchemaMetadataCache.Key key) |
void |
put(SchemaMetadataCache.Key key,
com.hortonworks.registries.schemaregistry.SchemaMetadataInfo schemaMetadataInfo) |
public SchemaMetadataCache(java.lang.Long size,
java.lang.Long expiryInSecs,
SchemaMetadataCache.SchemaMetadataFetcher schemaMetadataFetcher)
public com.hortonworks.registries.schemaregistry.SchemaMetadataInfo get(SchemaMetadataCache.Key key)
public void invalidateSchemaMetadata(SchemaMetadataCache.Key key)
public void put(SchemaMetadataCache.Key key, com.hortonworks.registries.schemaregistry.SchemaMetadataInfo schemaMetadataInfo)
public com.hortonworks.registries.schemaregistry.SchemaMetadataInfo getIfPresent(SchemaMetadataCache.Key key)