Interface UserFactory<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 Superinterfaces:
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>
- All Known Implementing Classes:
CompositeUserFactory
public interface UserFactory<CV,C,T,SV,D,S>
extends org.wildfly.clustering.cache.BiCacheEntryCreator<String,CV,SV,C>, org.wildfly.clustering.cache.BiCacheEntryLocator<String,CV,SV>, org.wildfly.clustering.cache.CacheEntryRemover<String>
Creates an
User from its cache storage value.- Author:
- Paul Ferraro
-
Method Summary
Modifier and TypeMethodDescriptiondefault Map.Entry<CompletionStage<CV>,CompletionStage<SV>> createEntry(String id, C context) createUser(String id, Map.Entry<CV, SV> value) default CompletionStage<org.wildfly.clustering.session.user.User<C,T, D, S>> createUserAsync(String id, Map.Entry<CompletionStage<CV>, CompletionStage<SV>> entry) default Map.Entry<CompletionStage<CV>,CompletionStage<SV>> default CompletionStage<Void>purgeAsync(String id) default CompletionStage<Void>removeAsync(String id) default Map.Entry<CompletionStage<CV>,CompletionStage<SV>> Methods 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, remove
-
Method Details
-
getUserContextFactory
UserContextFactory<CV,C, getUserContextFactory()T> -
getUserSessionsFactory
UserSessionsFactory<SV,D, getUserSessionsFactory()S> -
createUser
-
createUserAsync
default CompletionStage<org.wildfly.clustering.session.user.User<C,T, createUserAsyncD, S>> (String id, Map.Entry<CompletionStage<CV>, CompletionStage<SV>> entry) -
createEntry
-
findEntry
-
tryEntry
-
removeAsync
- Specified by:
removeAsyncin interfaceorg.wildfly.clustering.cache.CacheEntryRemover<CV>
-
purgeAsync
- Specified by:
purgeAsyncin interfaceorg.wildfly.clustering.cache.CacheEntryRemover<CV>
-