package session
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- session
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Type Members
- sealed trait Block extends Product with Serializable
- final case class ExitAsapLoopBlock(counterName: String, condition: Expression[Boolean], exitAction: Action) extends LoopBlock with Product with Serializable
- final case class ExitOnCompleteLoopBlock(counterName: String) extends LoopBlock with Product with Serializable
- type Expression[T] = (Session) => Validation[T]
- implicit final class ExpressionFailureWrapper extends AnyVal
- implicit final class ExpressionSuccessWrapper[T] extends AnyVal
- final case class GroupBlock(groups: List[String], startTimestamp: Long, cumulatedResponseTime: Int, status: Status) extends Block with Product with Serializable
- sealed trait LoopBlock extends Block
- implicit final class RichExpression[T] extends AnyVal
- 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
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
- final case class SessionAttribute(session: Session, key: String) extends Product with Serializable
- final case class StaticValueExpression[T](value: T) extends Expression[T] with Product with Serializable
- final case class TryMaxBlock(counterName: String, tryMaxAction: Action, status: Status) extends LoopBlock with Product with Serializable
Value Members
- val EmptyStringExpressionSuccess: Expression[String]
- val TrueExpressionSuccess: Expression[Boolean]
- def expressionSeq2SeqExpression[X](iterable: Iterable[(Expression[X], Expression[X])]): Expression[Seq[(String, X)]]
- def resolveOptionalExpression[T](expression: Option[Expression[T]], session: Session): Validation[Option[T]]
- def tupleSeq2SeqExpression(seq: Seq[(String, Any)]): Expression[Seq[(String, Any)]]
- object LoopBlock extends StrictLogging with Serializable
- object Session extends Serializable