Class DefaultUserManager<CV,C,T,SV,D,S>
java.lang.Object
org.wildfly.clustering.session.cache.user.DefaultUserManager<CV,C,T,SV,D,S>
- Type Parameters:
CV- the user context value typeC- the persistent context typeT- the transient context typeSV- the user sessions value typeD- the deployment typeS- the session type
- All Implemented Interfaces:
Manager<String>,ManagerConfiguration<String>,Service,UserManager<C,T, D, S>
A default user manager implementation that delegates to a user factory.
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultUserManager(UserFactory<CV, C, T, SV, D, S> factory, IdentifierFactory<String> identifierFactory, Supplier<Batch> batchFactory) -
Method Summary
Modifier and TypeMethodDescriptioncreateUser(String id, C context) Creates a new user with the specified identifier and context.Returns the user identified by the specified identifier.Returns a batcher for use by users of this manager.Returns a factory for creating identifiers for use by this manager.booleanIndicates whether or not this service is started.voidstart()Starts this service.voidstop()Stops this service.
-
Constructor Details
-
DefaultUserManager
-
-
Method Details
-
createUser
Description copied from interface:UserManagerCreates a new user with the specified identifier and context.- Specified by:
createUserin interfaceUserManager<CV,C, T, SV> - 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. -
getBatchFactory
Description copied from interface:ManagerReturns a batcher for use by users of this manager.- Specified by:
getBatchFactoryin interfaceManager<CV>- Returns:
- a batcher
-
getIdentifierFactory
Description copied from interface:ManagerConfigurationReturns a factory for creating identifiers for use by this manager.- Specified by:
getIdentifierFactoryin interfaceManagerConfiguration<CV>- Returns:
- an identifier factory
-
isStarted
public boolean isStarted()Description copied from interface:ServiceIndicates whether or not this service is started. -
start
public void start()Description copied from interface:ServiceStarts this service. -
stop
public void stop()Description copied from interface:ServiceStops this service.
-