class ReactorModelCache extends java.lang.Object implements ModelCache
| Modifier and Type | Class and Description |
|---|---|
private static class |
ReactorModelCache.CacheKey |
| Modifier and Type | Field and Description |
|---|---|
private java.util.Map<ReactorModelCache.CacheKey,java.lang.Object> |
models |
| Constructor and Description |
|---|
ReactorModelCache() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
get(java.lang.String groupId,
java.lang.String artifactId,
java.lang.String version,
java.lang.String tag)
Gets the specified data from the cache.
|
void |
put(java.lang.String groupId,
java.lang.String artifactId,
java.lang.String version,
java.lang.String tag,
java.lang.Object data)
Puts the specified data into the cache.
|
private final java.util.Map<ReactorModelCache.CacheKey,java.lang.Object> models
public java.lang.Object get(java.lang.String groupId,
java.lang.String artifactId,
java.lang.String version,
java.lang.String tag)
ModelCacheget in interface ModelCachegroupId - The group id of the cache record, must not be null.artifactId - The artifact id of the cache record, must not be null.version - The version of the cache record, must not be null.tag - The tag of the cache record, must not be null.null if none was present in the cache.public void put(java.lang.String groupId,
java.lang.String artifactId,
java.lang.String version,
java.lang.String tag,
java.lang.Object data)
ModelCacheput in interface ModelCachegroupId - The group id of the cache record, must not be null.artifactId - The artifact id of the cache record, must not be null.version - The version of the cache record, must not be null.tag - The tag of the cache record, must not be null.data - The data to store in the cache, must not be null.