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
-
Method Summary
Modifier and TypeMethodDescriptiondefault Map.Entry<CompletionStage<CV>, CompletionStage<SV>> createEntry(String id, C context) createUser(String id, Map.Entry<CV, SV> value) Creates a user from its composing cache entries.default Map.Entry<CompletionStage<CV>, CompletionStage<SV>> org.wildfly.clustering.cache.CachePropertiesReturns the properties of the cache.Returns the user context factory.Returns the user sessions factory.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> Returns the user context factory.- Returns:
- the user context factory.
-
getUserSessionsFactory
UserSessionsFactory<SV,D, getUserSessionsFactory()S> Returns the user sessions factory.- Returns:
- the user sessions factory.
-
getCacheProperties
org.wildfly.clustering.cache.CacheProperties getCacheProperties()Returns the properties of the cache.- Returns:
- the properties of the cache.
-
createUser
-
createEntry
-
findEntry
-
tryEntry
-
removeAsync
- Specified by:
removeAsyncin interfaceorg.wildfly.clustering.cache.CacheEntryRemover<CV>
-
purgeAsync
- Specified by:
purgeAsyncin interfaceorg.wildfly.clustering.cache.CacheEntryRemover<CV>
-