public enum KeepApplicationCacheHolder extends java.lang.Enum<KeepApplicationCacheHolder> implements KeepApplicationCache
Class for caching external applications
Enum Constant and Description |
---|
INSTANCE
SIngleton Instance
|
Modifier and Type | Method and Description |
---|---|
KeepApplicationConfigInfo |
addToCache(KeepApplicationConfigInfo config)
Adds external application to cache
|
void |
clear()
Clears the cache of all current members
|
io.vertx.core.json.JsonObject |
dumpAllForAdmin()
Converts all of bucket to a JsonObject
|
boolean |
evict(java.lang.String key)
Removes an entry from cache removing a non-existing key is still a success
|
KeepApplicationConfigInfo |
getApplicationConfigInfo(java.lang.String key)
Gets an external application by its application id
|
KeepApplicationConfigInfo |
getApplicationConfigInfo(java.lang.String key,
KeepJnxSession session)
Gets or loads an external application by its application id
|
TheBarbican |
getBarbican() |
boolean |
hasEntry(java.lang.String key)
Is a specific entry in the cache?
|
void |
setBarbican(TheBarbican barbican) |
static KeepApplicationCacheHolder |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static KeepApplicationCacheHolder[] |
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 KeepApplicationCacheHolder INSTANCE
public static KeepApplicationCacheHolder[] values()
for (KeepApplicationCacheHolder c : KeepApplicationCacheHolder.values()) System.out.println(c);
public static KeepApplicationCacheHolder 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 KeepApplicationConfigInfo addToCache(KeepApplicationConfigInfo config)
KeepApplicationCache
Adds external application to cache
addToCache
in interface KeepApplicationCache
config
- external application config infopublic void clear()
KeepBaseCache
Clears the cache of all current members
clear
in interface KeepBaseCache
public io.vertx.core.json.JsonObject dumpAllForAdmin()
KeepApplicationCache
Converts all of bucket to a JsonObject
dumpAllForAdmin
in interface KeepApplicationCache
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 KeepApplicationConfigInfo getApplicationConfigInfo(java.lang.String key) throws KeepException
KeepApplicationCache
Gets an external application by its application id
getApplicationConfigInfo
in interface KeepApplicationCache
key
- application idKeepException
public KeepApplicationConfigInfo getApplicationConfigInfo(java.lang.String key, KeepJnxSession session) throws KeepException
KeepApplicationCache
Gets or loads an external application by its application id
getApplicationConfigInfo
in interface KeepApplicationCache
key
- application idsession
- a Keep session to load that infoKeepException
public TheBarbican getBarbican()
public boolean hasEntry(java.lang.String key)
KeepBaseCache
Is a specific entry in the cache?
hasEntry
in interface KeepBaseCache
key
- public void setBarbican(TheBarbican barbican)
barbican
- a Barbican for Access control