final case class Session(scenario: String, userId: Long, attributes: Map[String, Any], baseStatus: Status, blockStack: List[Block], onExit: (Session) => Unit, eventLoop: EventLoop) 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
- attributes
the map that stores all values needed
- 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
Ordering
- Alphabetic
- By Inheritance
Inherited
- Session
- Serializable
- Product
- Equals
- LazyLogging
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new Session(scenario: String, userId: Long, attributes: Map[String, Any], baseStatus: Status, blockStack: List[Block], onExit: (Session) => Unit, eventLoop: EventLoop)
creates a new session
creates a new session
- scenario
the name of the current scenario
- userId
the id of the current user
- attributes
the map that stores all values needed
- 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
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def apply(name: String): SessionAttribute
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- val attributes: Map[String, Any]
- val baseStatus: Status
- val blockStack: List[Block]
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def contains(attributeKey: String): Boolean
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val eventLoop: EventLoop
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def groups: List[String]
- def isFailed: Boolean
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def logGroupRequestTimings(startTimestamp: Long, endTimestamp: Long): Session
- lazy val logger: Logger
- Attributes
- protected
- Definition Classes
- LazyLogging
- Annotations
- @transient()
- def loopCounterValue(counterName: String): Int
- def loopTimestampValue(counterName: String): Long
- def markAsFailed: Session
- def markAsSucceeded: Session
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val onExit: (Session) => Unit
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def remove(key: String): Session
- def removeAll(keys: String*): Session
- def reset: Session
- val scenario: String
- def set(key: String, value: Any): Session
- def setAll(newAttributes: Iterable[(String, Any)]): Session
- def setAll(newAttributes: (String, Any)*): Session
- def status: Status
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- val userId: Long
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()