Interface UserFactory<CV,C,T,SV,D,S>

Type Parameters:
CV - the user context value type
C - the persistent context type
T - the transient context type
SV - the user sessions value type
D - the deployment type
S - 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 composed from a UserContextFactory and UserSessionsFactory.
Author:
Paul Ferraro
  • Method Details

    • getUserContextFactory

      UserContextFactory<CV,C,T> getUserContextFactory()
      Returns the user context factory.
      Returns:
      the user context factory.
    • getUserSessionsFactory

      UserSessionsFactory<SV,D,S> getUserSessionsFactory()
      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

      org.wildfly.clustering.session.user.User<C,T,D,S> createUser(String id, Map.Entry<CV,SV> value)
      Creates a user from its composing cache entries.
      Parameters:
      id - the identifier of the user
      value - a tuple of cache values.
      Returns:
      a user
    • createEntry

      default Map.Entry<CompletionStage<CV>, CompletionStage<SV>> createEntry(String id, C context)
      Specified by:
      createEntry in interface org.wildfly.clustering.cache.BiCacheEntryCreator<CV,C,T,SV>
    • findEntry

      default Map.Entry<CompletionStage<CV>, CompletionStage<SV>> findEntry(String id)
      Specified by:
      findEntry in interface org.wildfly.clustering.cache.BiCacheEntryLocator<CV,C,T>
    • tryEntry

      default Map.Entry<CompletionStage<CV>, CompletionStage<SV>> tryEntry(String id)
      Specified by:
      tryEntry in interface org.wildfly.clustering.cache.BiCacheEntryLocator<CV,C,T>
    • removeAsync

      default CompletionStage<Void> removeAsync(String id)
      Specified by:
      removeAsync in interface org.wildfly.clustering.cache.CacheEntryRemover<CV>
    • purgeAsync

      default CompletionStage<Void> purgeAsync(String id)
      Specified by:
      purgeAsync in interface org.wildfly.clustering.cache.CacheEntryRemover<CV>