@ManagedResource public class EHCacheIdentityCache extends AbstractIdentityCache implements Closeable, BusLifeCycleListener
Constructor and Description |
---|
EHCacheIdentityCache(IdentityMapper identityMapper,
Bus b) |
EHCacheIdentityCache(IdentityMapper identityMapper,
String key,
Bus b,
URL configFileURL) |
Modifier and Type | Method and Description |
---|---|
void |
add(String user,
String realm,
Map<String,String> identities) |
void |
clear() |
void |
close() |
Map<String,String> |
get(String user,
String realm) |
String |
getContent() |
ObjectName |
getObjectName() |
void |
initComplete()
Invoked when the
Bus has been initialized. |
void |
postShutdown()
Invoked after the
Bus is shutdown. |
void |
preShutdown()
Invoked before the
Bus is shutdown. |
void |
remove(String user,
String realm) |
int |
size() |
getBus, getStatistics, mapPrincipal, setStatistics
public EHCacheIdentityCache(IdentityMapper identityMapper, Bus b)
public EHCacheIdentityCache(IdentityMapper identityMapper, String key, Bus b, URL configFileURL)
public void add(String user, String realm, Map<String,String> identities)
add
in interface IdentityCache
@ManagedOperation public Map<String,String> get(String user, String realm)
get
in interface IdentityCache
public void remove(String user, String realm)
remove
in interface IdentityCache
@ManagedOperation public void clear()
clear
in interface IdentityCache
@ManagedOperation public int size()
size
in interface IdentityCache
@ManagedOperation public String getContent()
public void close()
close
in interface Closeable
close
in interface AutoCloseable
public void initComplete()
BusLifeCycleListener
Bus
has been initialized.initComplete
in interface BusLifeCycleListener
public void preShutdown()
BusLifeCycleListener
Bus
is shutdown.preShutdown
in interface BusLifeCycleListener
public void postShutdown()
BusLifeCycleListener
Bus
is shutdown.postShutdown
in interface BusLifeCycleListener
public ObjectName getObjectName() throws JMException
getObjectName
in interface ManagedComponent
JMException
Copyright © 2020 JBoss by Red Hat. All rights reserved.