public class InfinispanRealmCache extends Object implements RealmCache
| Modifier and Type | Field and Description |
|---|---|
protected org.infinispan.Cache<String,Object> |
cache |
protected boolean |
enabled |
protected static org.jboss.logging.Logger |
logger |
protected ConcurrentHashMap<String,String> |
realmLookup |
| Constructor and Description |
|---|
InfinispanRealmCache(org.infinispan.Cache<String,Object> cache,
ConcurrentHashMap<String,String> realmLookup) |
| 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 static final org.jboss.logging.Logger logger
protected final ConcurrentHashMap<String,String> realmLookup
protected volatile boolean enabled
public InfinispanRealmCache(org.infinispan.Cache<String,Object> cache, ConcurrentHashMap<String,String> realmLookup)
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.