|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
Subject entry in this cache.
Repository implementation that wraps another
Repository and acts as a write-through cache of Subjects and
schema to id mappings, shielding the inner Repository from repetitive
lookups.Subject that caches id to schema mappings using the
SchemaEntryCache provided.
SchemaEntryCache instance for use with
Subject.cacheWith(Subject, SchemaEntryCache).
DelegatingSubject is a Subject that delegates work to an underlying
Subject.DelegatingSubject delegates work to a provided Subject.
Subject.
InMemoryCache is an implementation of RepositoryCache
that uses InMemorySubjectCache and InMemorySchemaEntryCacheRepository that stores its data in memory and is not persistent.SchemaEntryCache that never evicts any values;SubjectCache that never evicts any values.Repository that persists content to file.Subject by its name.
SchemaEntry for the given subject by id.
SchemaEntry for the given schema.
Subject that rejects modifications, throwing
IllegalStateException if a modification is attempted
Repository implementation that wraps another
Repository and rejects all operations that can modify the state of
the Repository.ReadOnlyRepository.register(String, SubjectConfig), Subject.register(String)
and Subject.registerIfLatest(String, SchemaEntry) throw
IllegalStateException if called.Repository is a collection of Subjects.RepositoryCache composes a SubjectCache with a
SchemaEntryCache.Factory, using
Subject.cacheWith(Subject, SchemaEntryCache) to wrap Subject
instances prior to insertion into the SubjectCache.RepositoryUtil contains static helper methods for the
org.schemarepo package.SchemaEntry is composed of a schema and its corresponding id.SchemaEntry.toString()
SchemaEntryCache is a bi-directional cache from a schema string to
a schema id string.SchemaEntryCacheJsonUtil.schemasToJson(Iterable)
RepositoryUtil.schemasToString(Iterable)
SchemaEntry objects into a String for use by
JsonUtil.schemasFromJson(String)
The format is an array of objects containing id and schema fields, for example:
[{"id": "0", "schema": "schema1"}, {"id": "2", "schema": "schema2"}]
SchemaEntry objects into a String for use by
RepositoryUtil.schemasFromString(String)
ValidatorFactory that maps the
Validator provided to the name given.
Subject is a collection of mutually compatible Schemas.Subject has a name.
SubjectCache is a cache from a string subject name to a
SubjectSubjectConfig is effectively a MapJsonUtil.subjectsToJson(Iterable)
RepositoryUtil.subjectsToString(Iterable)
Subjects into a String for use by
JsonUtil.subjectNamesFromJson(String)
The format is an array of objects containing a name field, for example:
[{"name": "subject1"}, {"name": "subject2"}]
Subjects into a String for use by
RepositoryUtil.subjectNamesFromString(String)
Subject that validates schemas as configured.
Subject in a Repository
to ensure that schemas added to the Subject are mutually compatible.
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||