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, valueOfgetCachePrefixpublic 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)
KeepApplicationCacheAdds external application to cache
addToCache in interface KeepApplicationCacheconfig - external application config infopublic void clear()
KeepBaseCacheClears the cache of all current members
clear in interface KeepBaseCachepublic io.vertx.core.json.JsonObject dumpAllForAdmin()
KeepApplicationCacheConverts all of bucket to a JsonObject
dumpAllForAdmin in interface KeepApplicationCachepublic 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 KeepApplicationConfigInfo getApplicationConfigInfo(java.lang.String key) throws KeepException
KeepApplicationCacheGets an external application by its application id
getApplicationConfigInfo in interface KeepApplicationCachekey - application idKeepExceptionpublic KeepApplicationConfigInfo getApplicationConfigInfo(java.lang.String key, KeepJnxSession session) throws KeepException
KeepApplicationCacheGets or loads an external application by its application id
getApplicationConfigInfo in interface KeepApplicationCachekey - application idsession - a Keep session to load that infoKeepExceptionpublic TheBarbican getBarbican()
public boolean hasEntry(java.lang.String key)
KeepBaseCacheIs a specific entry in the cache?
hasEntry in interface KeepBaseCachekey - public void setBarbican(TheBarbican barbican)
barbican - a Barbican for Access control