Class CompositeUserFactory<CV,C,T,SV,D,S>
java.lang.Object
org.wildfly.clustering.session.cache.user.CompositeUserFactory<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:
BiCacheEntryCreator<String,CV, SV, C>, BiCacheEntryLocator<String, CV, SV>, CacheEntryCreator<String, Map.Entry<CV, SV>, C>, CacheEntryLocator<String, Map.Entry<CV, SV>>, CacheEntryRemover<String>, UserFactory<CV, C, T, SV, D, S>
public class CompositeUserFactory<CV,C,T,SV,D,S>
extends Object
implements UserFactory<CV,C,T,SV,D,S>
A user factory that creates composite users.
-
Constructor Summary
ConstructorsConstructorDescriptionCompositeUserFactory(UserContextFactory<CV, C, T> contextFactory, UserSessionsFactory<SV, D, S> sessionsFactory, CacheProperties properties) Creates a factory for creating a composite user. -
Method Summary
Modifier and TypeMethodDescriptioncreateUser(String id, Map.Entry<CV, SV> entry) Creates a user from its composing cache entries.Returns the properties of the cache.Returns the user context factory.Returns the user sessions factory.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BiCacheEntryCreator
createValueAsyncMethods inherited from interface BiCacheEntryLocator
findValueAsync, tryValueAsyncMethods inherited from interface CacheEntryCreator
createValueMethods inherited from interface CacheEntryLocator
findValue, tryValueMethods inherited from interface CacheEntryRemover
purge, removeMethods inherited from interface UserFactory
createEntry, findEntry, purgeAsync, removeAsync, tryEntry
-
Constructor Details
-
CompositeUserFactory
public CompositeUserFactory(UserContextFactory<CV, C, T> contextFactory, UserSessionsFactory<SV, D, S> sessionsFactory, CacheProperties properties) Creates a factory for creating a composite user.- Parameters:
contextFactory- a context factorysessionsFactory- a factory for creating user sessionsproperties- the properties of the associated cache
-
-
Method Details
-
createUser
Description copied from interface:UserFactoryCreates a user from its composing cache entries.- Specified by:
createUserin interfaceUserFactory<CV,C, T, SV, D, S> - Parameters:
id- the identifier of the userentry- a tuple of cache values.- Returns:
- a user
-
getUserContextFactory
Description copied from interface:UserFactoryReturns the user context factory.- Specified by:
getUserContextFactoryin interfaceUserFactory<CV,C, T, SV, D, S> - Returns:
- the user context factory.
-
getUserSessionsFactory
Description copied from interface:UserFactoryReturns the user sessions factory.- Specified by:
getUserSessionsFactoryin interfaceUserFactory<CV,C, T, SV, D, S> - Returns:
- the user sessions factory.
-
getCacheProperties
Description copied from interface:UserFactoryReturns the properties of the cache.- Specified by:
getCachePropertiesin interfaceUserFactory<CV,C, T, SV, D, S> - Returns:
- the properties of the cache.
-