case class Session(scenario: String, userId: Long, startDate: Long, attributes: Map[String, Any] = Map.empty, drift: Long = 0L, baseStatus: Status = OK, blockStack: List[Block] = Nil, onExit: (Session) ⇒ Unit = Session.NothingOnExit) extends LazyLogging with Product with Serializable

Session class representing the session passing through a scenario for a given user

This session stores all needed data between requests

scenario

the name of the current scenario

userId

the id of the current user

startDate

when the user was started

attributes

the map that stores all values needed

drift

the cumulated time that was spent in Gatling on computation and that wasn't compensated for

baseStatus

the status when not in a TryMax blocks hierarchy

blockStack

the block stack

onExit

hook to execute once the user reaches the exit

Linear Supertypes
Serializable, Serializable, Product, Equals, LazyLogging, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Session
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. LazyLogging
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Session(scenario: String, userId: Long, startDate: Long, attributes: Map[String, Any] = Map.empty, drift: Long = 0L, baseStatus: Status = OK, blockStack: List[Block] = Nil, onExit: (Session) ⇒ Unit = Session.NothingOnExit)

    creates a new session

    creates a new session

    scenario

    the name of the current scenario

    userId

    the id of the current user

    startDate

    when the user was started

    attributes

    the map that stores all values needed

    drift

    the cumulated time that was spent in Gatling on computation and that wasn't compensated for

    baseStatus

    the status when not in a TryMax blocks hierarchy

    blockStack

    the block stack

    onExit

    hook to execute once the user reaches the exit

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def apply(name: String): SessionAttribute
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. val attributes: Map[String, Any]
  7. val baseStatus: Status
  8. val blockStack: List[Block]
  9. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  10. def contains(attributeKey: String): Boolean
  11. val drift: Long
  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def exit(): Unit
  14. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  16. def groupHierarchy: List[String]
  17. def isFailed: Boolean
  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. def logGroupRequest(startTimestamp: Long, endTimestamp: Long, status: Status): Session
  20. lazy val logger: Logger
    Attributes
    protected
    Definition Classes
    LazyLogging
    Annotations
    @transient()
  21. def loopCounterValue(counterName: String): Int
  22. def loopTimestampValue(counterName: String): Long
  23. def markAsFailed: Session
  24. def markAsSucceeded: Session
  25. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  26. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  27. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  28. val onExit: (Session) ⇒ Unit
  29. def remove(key: String): Session
  30. def removeAll(keys: String*): Session
  31. def reset: Session
  32. val scenario: String
  33. def set(key: String, value: Any): Session
  34. def setAll(newAttributes: Iterable[(String, Any)]): Session
  35. def setAll(newAttributes: (String, Any)*): Session
  36. val startDate: Long
  37. def status: Status
  38. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  39. def update(updates: Iterable[(Session) ⇒ Session]): Session
  40. val userId: Long
  41. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  42. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  43. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from LazyLogging

Inherited from AnyRef

Inherited from Any

Ungrouped