net.liftweb.http

SnapshotRequestVar

abstract class SnapshotRequestVar[T] extends RequestVar[T]

This subclass of RequestVars that allow the specification of a RequestVarSnapshotGroup. You can create a snapshot of all the members of this group in RequestVar.snapshot

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. SnapshotRequestVar
  2. RequestVar
  3. HasLogUnreadVal
  4. AnyVar
  5. AnyVarTrait
  6. HasCalcDefaultValue
  7. PSettableValueHolder
  8. SettableValueHolder
  9. Settable
  10. PValueHolder
  11. ValueHolder
  12. AnyRef
  13. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SnapshotRequestVar(group: RequestVarSnapshotGroup, d: ⇒ T)

Type Members

  1. type CleanUpParam = Box[LiftSession]

    Definition Classes
    RequestVarAnyVarTrait
  2. type ValueType = T

    Definition Classes
    PValueHolderValueHolder

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def __nameSalt: String

    Attributes
    protected
    Definition Classes
    AnyVarTrait
  7. def apply(what: T): T

    Set the session variable

    Set the session variable

    what

    -- the value to set the session variable to

    Definition Classes
    AnyVarTrait
  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def atomicUpdate(f: (ValueType) ⇒ ValueType): ValueType

    Perform an atomic update of this Settable.

    Perform an atomic update of this Settable. The current value is passed to the function and the ValueHolder is set to the result of the function. This is enclosed in the performAtomicOperation method which will, by default, synchronize this instance

    Definition Classes
    Settable
  10. def calcDefaultValue: T

    Attributes
    protected
    Definition Classes
    AnyVarAnyVarTraitHasCalcDefaultValue
  11. def clearFunc(name: String): Unit

    Attributes
    protected
    Definition Classes
    RequestVarAnyVarTrait
  12. def clone(): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  13. def doSync[F](f: ⇒ F): F

    Different Vars require different mechanisms for synchronization.

    Different Vars require different mechanisms for synchronization. This method implements the Var specific synchronization mechanism

    Definition Classes
    RequestVarAnyVarTrait
  14. def doWith[F](newVal: T)(f: ⇒ F): F

    Change the value of the Var for the lifespan of the function

    Change the value of the Var for the lifespan of the function

    Definition Classes
    AnyVarTrait
  15. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  16. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  17. def finalize(): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  18. def findFunc(name: String): Box[T]

    Attributes
    protected
    Definition Classes
    RequestVarAnyVarTrait
  19. final def generateSnapshotRestorer[T](): (() ⇒ T) ⇒ T

    Generate a function that will take a snapshot of the current RequestVars such that they can be restored

    Generate a function that will take a snapshot of the current RequestVars such that they can be restored

    Definition Classes
    RequestVar
  20. def get: T

    Shadow of the 'is' method

    Shadow of the 'is' method

    Definition Classes
    AnyVarTraitValueHolder
  21. final def getClass(): java.lang.Class[_]

    Definition Classes
    AnyRef → Any
  22. val group: RequestVarSnapshotGroup

  23. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  24. def is: T

    The current value of the variable

    The current value of the variable

    Definition Classes
    AnyVarTraitValueHolder
  25. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  26. def logUnreadVal: Boolean

    This defines whether or not Lift will log when a RequestVar is set but then not read within the same request cycle.

    This defines whether or not Lift will log when a RequestVar is set but then not read within the same request cycle. Change this to false to turn off logging. Logging can also be turned off globally via LiftRules.logUnreadRequestVars.

    Definition Classes
    RequestVar → HasLogUnreadVal
    See also

    LiftRules#logUnreadRequestVars

  27. lazy val name: String

    Attributes
    protected
    Definition Classes
    AnyVarTrait
  28. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  29. final def notify(): Unit

    Definition Classes
    AnyRef
  30. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  31. def onShutdown(session: CleanUpParam): Unit

    Attributes
    protected
    Definition Classes
    AnyVarTrait
  32. def performAtomicOperation[T](f: ⇒ T): T

    Perform an atomic operation on the Settable.

    Perform an atomic operation on the Settable. By default synchronizes the instance, but it could use other mechanisms

    Definition Classes
    Settable
  33. def registerCleanupFunc(in: (Box[LiftSession]) ⇒ Unit): Unit

    Attributes
    protected
    Definition Classes
    RequestVarAnyVarTrait
  34. final def registerGlobalCleanupFunc(in: (CleanUpParam) ⇒ Unit): Unit

    Attributes
    protected
    Definition Classes
    AnyVarTrait
  35. def remove(): Unit

    Definition Classes
    AnyVarTrait
  36. def set(what: T): T

    Shadow of the apply method

    Shadow of the apply method

    Definition Classes
    AnyVarTraitSettable
  37. def setFunc(name: String, value: T): Unit

    Attributes
    protected
    Definition Classes
    RequestVarAnyVarTrait
  38. def setIsUnset(value: ⇒ T): T

    Set the Var if it has not been calculated

    Set the Var if it has not been calculated

    Definition Classes
    AnyVarTrait
  39. def set_?: Boolean

    Has this Var been set or accessed and had its default value calculated

    Has this Var been set or accessed and had its default value calculated

    Definition Classes
    AnyVarTrait
  40. def settingDefault_?: Boolean

    Attributes
    protected
    Definition Classes
    AnyVarTrait
  41. def snapshot(): () ⇒ Unit

    Return a function that, when applied, will set the value of the RequestVar to its current value

    Return a function that, when applied, will set the value of the RequestVar to its current value

    Definition Classes
    RequestVar
  42. def snapshotGroup: Box[RequestVarSnapshotGroup]

    The Snapshot group this requestvar is part of

    The Snapshot group this requestvar is part of

    Definition Classes
    SnapshotRequestVarRequestVar
  43. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  44. def testWasSet(name: String): Boolean

    A non-side-effecting test if the value was initialized

    A non-side-effecting test if the value was initialized

    Attributes
    protected
    Definition Classes
    RequestVarAnyVarTrait
  45. def toString(): String

    Definition Classes
    AnyVarTrait → AnyRef → Any
  46. def update(f: (T) ⇒ T): T

    Applies the given function to the contents of this variable and sets the variable to the resulting value.

    Applies the given function to the contents of this variable and sets the variable to the resulting value.

    f

    -- the function to apply and set the result from.

    Definition Classes
    AnyVarTrait
  47. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  48. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  49. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  50. def wasInitialized(name: String): Boolean

    Attributes
    protected
    Definition Classes
    RequestVarAnyVarTrait

Inherited from RequestVar[T]

Inherited from HasLogUnreadVal

Inherited from AnyVar[T, RequestVar[T]]

Inherited from AnyVarTrait[T, RequestVar[T]]

Inherited from HasCalcDefaultValue[T]

Inherited from PSettableValueHolder[T]

Inherited from SettableValueHolder

Inherited from Settable

Inherited from PValueHolder[T]

Inherited from ValueHolder

Inherited from AnyRef

Inherited from Any