Class UserSessionImpl

  • All Implemented Interfaces:
    Context, UserSession

    public class UserSessionImpl
    extends ContextImpl
    implements UserSession
    User session is a stash to store objects and share them among scenarios or DSLs in every load generation cycle. Once load generation cycle completes, will be created before the simulation starts, and it will existing during the simulation execution.
    Since:
    1.1.0
    Author:
    Erhan Bagdemir
    • Constructor Detail

      • UserSessionImpl

        public UserSessionImpl​(User user)
    • Method Detail

      • getUser

        public User getUser()
        Description copied from interface: UserSession
        Returns the user of the current session.

        Specified by:
        getUser in interface UserSession
        Returns:
        The user of the current session.
      • getUserToken

        public java.util.Optional<java.lang.String> getUserToken()
        Description copied from interface: UserSession
        Optional of user token.

        Specified by:
        getUserToken in interface UserSession
        Returns:
        Optional type.
      • getRefreshToken

        public java.util.Optional<java.lang.String> getRefreshToken()
        Description copied from interface: UserSession
        Optional of refresh token.

        Specified by:
        getRefreshToken in interface UserSession
        Returns:
        Optional type.