|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.schemarepo.InMemorySchemaEntryCache
public class InMemorySchemaEntryCache
An unbounded in memory SchemaEntryCache that never evicts any values;
| Nested Class Summary | |
|---|---|
static class |
InMemorySchemaEntryCache.Factory
|
| Constructor Summary | |
|---|---|
InMemorySchemaEntryCache()
|
|
| Method Summary | |
|---|---|
SchemaEntry |
add(SchemaEntry entry)
Add the schema entry to this cache. |
SchemaEntry |
lookupById(String id)
Look up a schema entry by its id. |
SchemaEntry |
lookupBySchema(String schema)
Look up a schema entry by its full string form. |
Iterable<SchemaEntry> |
values()
return all of the values in this cache |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InMemorySchemaEntryCache()
| Method Detail |
|---|
public SchemaEntry lookupBySchema(String schema)
SchemaEntryCache
lookupBySchema in interface SchemaEntryCachepublic SchemaEntry lookupById(String id)
SchemaEntryCache
lookupById in interface SchemaEntryCachepublic SchemaEntry add(SchemaEntry entry)
SchemaEntryCache
add in interface SchemaEntryCacheentry - schema entry to add. If the provided entry is null, returns null;
SchemaEntry that is in the cache after the call
completes. If the entry already exists the pre-existing value is
returned, otherwise the value returned is the entry provided. If
the provided entry is null, returns null. Thread-safe.public Iterable<SchemaEntry> values()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||