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:
org.wildfly.clustering.cache.BiCacheEntryCreator<String,CV, SV, C>, org.wildfly.clustering.cache.BiCacheEntryLocator<String, CV, SV>, org.wildfly.clustering.cache.CacheEntryCreator<String, Map.Entry<CV, SV>, C>, org.wildfly.clustering.cache.CacheEntryLocator<String, Map.Entry<CV, SV>>, org.wildfly.clustering.cache.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, org.wildfly.clustering.cache.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.org.wildfly.clustering.cache.CachePropertiesReturns 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 org.wildfly.clustering.cache.BiCacheEntryCreator
createValueAsyncMethods inherited from interface org.wildfly.clustering.cache.BiCacheEntryLocator
findValueAsync, tryValueAsyncMethods inherited from interface org.wildfly.clustering.cache.CacheEntryCreator
createValueMethods inherited from interface org.wildfly.clustering.cache.CacheEntryLocator
findValue, tryValueMethods inherited from interface org.wildfly.clustering.cache.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, org.wildfly.clustering.cache.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
public org.wildfly.clustering.session.user.User<C,T, createUserD, S> (String id, Map.Entry<CV, SV> entry) 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
public org.wildfly.clustering.cache.CacheProperties 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.
-