Class CachedUserManager<C,T,D,S>
java.lang.Object
org.wildfly.clustering.server.service.DecoratedService
org.wildfly.clustering.server.manager.DecoratedManager<String>
org.wildfly.clustering.session.cache.user.DecoratedUserManager<C,T,D,S>
org.wildfly.clustering.session.cache.user.CachedUserManager<C,T,D,S>
- Type Parameters:
C- the persistent context typeT- the transient context typeD- the deployment typeS- the session type
- All Implemented Interfaces:
Manager<String>, ManagerConfiguration<String>, Service, UserManager<C,T, D, S>
A user manager that shares user references between concurrent threads.
- Author:
- Paul Ferraro
-
Constructor Summary
ConstructorsConstructorDescriptionCachedUserManager(UserManager<C, T, D, S> manager, CacheFactory cacheFactory) Creates a cached user manager. -
Method Summary
Methods inherited from class DecoratedManager
getBatchFactory, getIdentifierFactoryMethods inherited from class DecoratedService
isStarted, start, stopMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Manager
getBatchFactoryMethods inherited from interface ManagerConfiguration
getIdentifierFactory
-
Constructor Details
-
CachedUserManager
Creates a cached user manager.- Parameters:
manager- the decorated user managercacheFactory- a cache factory
-
-
Method Details
-
createUser
Description copied from interface:UserManagerCreates a new user with the specified identifier and context.- Specified by:
createUserin interfaceUserManager<C,T, D, S> - Overrides:
createUserin classDecoratedUserManager<C,T, D, S> - Parameters:
id- a unique user identifiercontext- the user context- Returns:
- a new user
-
findUser
Description copied from interface:UserManagerReturns the user identified by the specified identifier.
-