Class DecoratedUserManager<C,T,D,S>

java.lang.Object
org.wildfly.clustering.session.cache.user.DecoratedUserManager<C,T,D,S>
Type Parameters:
C - the persistent context type
T - the transient context type
D - the deployment type
S - the session type
All Implemented Interfaces:
Manager<String>, ManagerConfiguration<String>, Service, UserManager<C,T,D,S>
Direct Known Subclasses:
CachedUserManager

public class DecoratedUserManager<C,T,D,S> extends Object implements UserManager<C,T,D,S>
Author:
Paul Ferraro
  • Constructor Details

    • DecoratedUserManager

      public DecoratedUserManager(UserManager<C,T,D,S> manager)
  • Method Details

    • getBatchFactory

      public Supplier<Batch> getBatchFactory()
      Description copied from interface: Manager
      Returns a batcher for use by users of this manager.
      Specified by:
      getBatchFactory in interface Manager<C>
      Returns:
      a batcher
    • getIdentifierFactory

      public Supplier<String> getIdentifierFactory()
      Description copied from interface: ManagerConfiguration
      Returns a factory for creating identifiers for use by this manager.
      Specified by:
      getIdentifierFactory in interface ManagerConfiguration<C>
      Returns:
      an identifier factory
    • isStarted

      public boolean isStarted()
      Description copied from interface: Service
      Indicates whether or not this service is started.
      Specified by:
      isStarted in interface Service
      Returns:
      true, if this service is started, false otherwise
    • start

      public void start()
      Description copied from interface: Service
      Starts this service.
      Specified by:
      start in interface Service
    • stop

      public void stop()
      Description copied from interface: Service
      Stops this service.
      Specified by:
      stop in interface Service
    • createUser

      public User<C,T,D,S> createUser(String id, C context)
      Description copied from interface: UserManager
      Creates a new user with the specified identifier and context.
      Specified by:
      createUser in interface UserManager<C,T,D,S>
      Parameters:
      id - a unique user identifier
      context - the user context
      Returns:
      a new user
    • findUser

      public User<C,T,D,S> findUser(String id)
      Description copied from interface: UserManager
      Returns the user identified by the specified identifier.
      Specified by:
      findUser in interface UserManager<C,T,D,S>
      Parameters:
      id - a unique user identifier
      Returns:
      an existing user, or null, if no user exists for the specified identifier.