public enum DesignCacheHolder extends java.lang.Enum<DesignCacheHolder> implements DesignCache
| Enum Constant and Description |
|---|
INSTANCE
Design Cache with DXL
|
| Modifier and Type | Method and Description |
|---|---|
DesignCache |
addToCache(io.vertx.core.json.JsonObject design)
Adds design to cache
|
io.vertx.core.json.JsonObject |
cacheStatus(io.vertx.core.json.JsonObject db) |
void |
clear()
Clears the cache of all current members
|
boolean |
evict(java.lang.String key)
Removes an entry from cache removing a non-existing key is still a success
|
io.vertx.core.json.JsonArray |
getCacheContent() |
io.vertx.core.json.JsonObject |
getDesign(java.lang.String key) |
boolean |
hasEntry(java.lang.String key)
Is a specific entry in the cache?
|
static DesignCacheHolder |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DesignCacheHolder[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfgetCachePrefixpublic static final DesignCacheHolder INSTANCE
public static DesignCacheHolder[] values()
for (DesignCacheHolder c : DesignCacheHolder.values()) System.out.println(c);
public static DesignCacheHolder valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic DesignCache addToCache(io.vertx.core.json.JsonObject design)
DesignCacheAdds design to cache
addToCache in interface DesignCachepublic io.vertx.core.json.JsonObject cacheStatus(io.vertx.core.json.JsonObject db)
cacheStatus in interface DesignCachedb - JsonObject with db Informationpublic void clear()
KeepBaseCacheClears the cache of all current members
clear in interface KeepBaseCachepublic boolean evict(java.lang.String key)
KeepBaseCacheRemoves an entry from cache removing a non-existing key is still a success
evict in interface KeepBaseCachekey - public io.vertx.core.json.JsonArray getCacheContent()
getCacheContent in interface DesignCachepublic io.vertx.core.json.JsonObject getDesign(java.lang.String key)
getDesign in interface DesignCachepublic boolean hasEntry(java.lang.String key)
KeepBaseCacheIs a specific entry in the cache?
hasEntry in interface KeepBaseCachekey -