public class MemoryRealmCache extends Object implements RealmCache
| Modifier and Type | Field and Description |
|---|---|
protected ConcurrentHashMap<String,CachedApplication> |
applicationCache |
protected ConcurrentHashMap<String,CachedOAuthClient> |
clientCache |
protected boolean |
enabled |
protected ConcurrentHashMap<String,CachedRealm> |
realmCache |
protected ConcurrentHashMap<String,CachedRealm> |
realmCacheByName |
protected ConcurrentHashMap<String,CachedRole> |
roleCache |
| Constructor and Description |
|---|
MemoryRealmCache() |
| Modifier and Type | Method and Description |
|---|---|
void |
addCachedApplication(CachedApplication app) |
void |
addCachedOAuthClient(CachedOAuthClient client) |
void |
addCachedRealm(CachedRealm realm) |
void |
addCachedRole(CachedRole role) |
void |
clear() |
CachedApplication |
getApplication(String id) |
CachedRealm |
getCachedRealm(String id) |
CachedRealm |
getCachedRealmByName(String name) |
CachedOAuthClient |
getOAuthClient(String id) |
CachedRole |
getRole(String id) |
void |
invalidateApplication(CachedApplication app) |
void |
invalidateCachedApplicationById(String id) |
void |
invalidateCachedOAuthClientById(String id) |
void |
invalidateCachedRealm(CachedRealm realm) |
void |
invalidateCachedRealmById(String id) |
void |
invalidateCachedRoleById(String id) |
void |
invalidateOAuthClient(CachedOAuthClient client) |
void |
invalidateRole(CachedRole role) |
void |
invalidateRoleById(String id) |
boolean |
isEnabled() |
void |
setEnabled(boolean enabled) |
protected ConcurrentHashMap<String,CachedRealm> realmCache
protected ConcurrentHashMap<String,CachedRealm> realmCacheByName
protected ConcurrentHashMap<String,CachedApplication> applicationCache
protected ConcurrentHashMap<String,CachedOAuthClient> clientCache
protected ConcurrentHashMap<String,CachedRole> roleCache
protected volatile boolean enabled
public void clear()
clear in interface RealmCachepublic boolean isEnabled()
isEnabled in interface RealmCachepublic void setEnabled(boolean enabled)
setEnabled in interface RealmCachepublic CachedRealm getCachedRealm(String id)
getCachedRealm in interface RealmCachepublic void invalidateCachedRealm(CachedRealm realm)
invalidateCachedRealm in interface RealmCachepublic void invalidateCachedRealmById(String id)
invalidateCachedRealmById in interface RealmCachepublic void addCachedRealm(CachedRealm realm)
addCachedRealm in interface RealmCachepublic CachedRealm getCachedRealmByName(String name)
getCachedRealmByName in interface RealmCachepublic CachedApplication getApplication(String id)
getApplication in interface RealmCachepublic void invalidateApplication(CachedApplication app)
invalidateApplication in interface RealmCachepublic void addCachedApplication(CachedApplication app)
addCachedApplication in interface RealmCachepublic void invalidateCachedApplicationById(String id)
invalidateCachedApplicationById in interface RealmCachepublic CachedOAuthClient getOAuthClient(String id)
getOAuthClient in interface RealmCachepublic void invalidateOAuthClient(CachedOAuthClient client)
invalidateOAuthClient in interface RealmCachepublic void addCachedOAuthClient(CachedOAuthClient client)
addCachedOAuthClient in interface RealmCachepublic void invalidateCachedOAuthClientById(String id)
invalidateCachedOAuthClientById in interface RealmCachepublic CachedRole getRole(String id)
getRole in interface RealmCachepublic void invalidateRole(CachedRole role)
invalidateRole in interface RealmCachepublic void invalidateRoleById(String id)
invalidateRoleById in interface RealmCachepublic void addCachedRole(CachedRole role)
addCachedRole in interface RealmCachepublic void invalidateCachedRoleById(String id)
invalidateCachedRoleById in interface RealmCacheCopyright © 2014. All Rights Reserved.