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, valueOf
getCachePrefix
public 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)
DesignCache
Adds design to cache
addToCache
in interface DesignCache
public io.vertx.core.json.JsonObject cacheStatus(io.vertx.core.json.JsonObject db)
cacheStatus
in interface DesignCache
db
- JsonObject with db Informationpublic void clear()
KeepBaseCache
Clears the cache of all current members
clear
in interface KeepBaseCache
public boolean evict(java.lang.String key)
KeepBaseCache
Removes an entry from cache removing a non-existing key is still a success
evict
in interface KeepBaseCache
key
- public io.vertx.core.json.JsonArray getCacheContent()
getCacheContent
in interface DesignCache
public io.vertx.core.json.JsonObject getDesign(java.lang.String key)
getDesign
in interface DesignCache
public boolean hasEntry(java.lang.String key)
KeepBaseCache
Is a specific entry in the cache?
hasEntry
in interface KeepBaseCache
key
-