public enum KeepUsersHolder extends java.lang.Enum<KeepUsersHolder> implements KeepUsers
Enum Constant and Description |
---|
INSTANCE
Singleton implementation using an ENUM
|
Modifier and Type | Method and Description |
---|---|
KeepUsers |
addServers(io.vertx.core.json.JsonObject serverListIncoming) |
KeepUser |
addUser(KeepUser keepUser)
Update a vert.x user into to cache to capture additional propertied
|
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.Future<java.lang.String> |
getMailboxDatabaseName(io.vertx.core.Vertx vertx,
KeepFactory factory,
KeepUser incomingUser,
java.lang.String calendarName,
java.lang.String alternateMailboxId) |
KeepUser |
getUser(java.lang.String userName)
Returns a KeepUser instance from Cache for processing and update
|
KeepUser |
getUser(io.vertx.ext.auth.User vertxUser,
boolean allowJwtMail)
Converts a Vert.x user object into a KeepUser
|
boolean |
hasEntry(java.lang.String key)
Is a specific entry in the cache?
|
static KeepUsersHolder |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static KeepUsersHolder[] |
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 KeepUsersHolder INSTANCE
public static KeepUsersHolder[] values()
for (KeepUsersHolder c : KeepUsersHolder.values()) System.out.println(c);
public static KeepUsersHolder 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 KeepUsers addServers(io.vertx.core.json.JsonObject serverListIncoming)
addServers
in interface KeepUsers
serverListIncoming
- public KeepUser addUser(KeepUser keepUser)
KeepUsers
Update a vert.x user into to cache to capture additional propertied
public 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.Future<java.lang.String> getMailboxDatabaseName(io.vertx.core.Vertx vertx, KeepFactory factory, KeepUser incomingUser, java.lang.String calendarName, java.lang.String alternateMailboxId)
getMailboxDatabaseName
in interface KeepUsers
factory
- incomingUser
- calendarName
- alternateMailboxId
- Delegated accesspublic KeepUser getUser(java.lang.String userName)
KeepUsers
Returns a KeepUser instance from Cache for processing and update
public KeepUser getUser(io.vertx.ext.auth.User vertxUser, boolean allowJwtMail)
KeepUsers
Converts a Vert.x user object into a KeepUser
public boolean hasEntry(java.lang.String key)
KeepBaseCache
Is a specific entry in the cache?
hasEntry
in interface KeepBaseCache
key
-