@Override public SchemaEntry registerIfLatest(String schema, SchemaEntry latest) throws SchemaValidationException { return cache.add(super.registerIfLatest(schema, latest)); }
@Override public Iterable<SchemaEntry> allEntries() { Iterable<SchemaEntry> all = super.allEntries(); for (SchemaEntry entry : all) { cache.add(entry); } return all; } }
@Override public SchemaEntry registerIfLatest(String schema, SchemaEntry latest) throws SchemaValidationException { return cache.add(super.registerIfLatest(schema, latest)); }
@Override public Iterable<SchemaEntry> allEntries() { Iterable<SchemaEntry> all = super.allEntries(); for (SchemaEntry entry : all) { cache.add(entry); } return all; } }
@Override public SchemaEntry lookupById(String id) { SchemaEntry entry = cache.lookupById(id); if (entry == null) { return cache.add(super.lookupById(id)); } return entry; }
@Override public SchemaEntry lookupBySchema(String schema) { SchemaEntry entry = cache.lookupBySchema(schema); if (entry == null) { return cache.add(super.lookupBySchema(schema)); } return entry; }
@Override public SchemaEntry lookupById(String id) { SchemaEntry entry = cache.lookupById(id); if (entry == null) { return cache.add(super.lookupById(id)); } return entry; }
@Override public SchemaEntry register(String schema) throws SchemaValidationException { SchemaEntry entry = cache.lookupBySchema(schema); if (entry == null) { return cache.add(super.register(schema)); } return entry; }
@Override public SchemaEntry lookupBySchema(String schema) { SchemaEntry entry = cache.lookupBySchema(schema); if (entry == null) { return cache.add(super.lookupBySchema(schema)); } return entry; }
@Override public SchemaEntry register(String schema) throws SchemaValidationException { SchemaEntry entry = cache.lookupBySchema(schema); if (entry == null) { return cache.add(super.register(schema)); } return entry; }