object SessionMaster extends LiftActor with Loggable
Manages LiftSessions because the servlet container is less than optimal at timing sessions out.
- Alphabetic
- By Inheritance
- SessionMaster
- Loggable
- LiftActor
- ForwardableActor
- GenericActor
- TypedActor
- SpecializedLiftActor
- SimpleActor
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- def !(msg: Any): Unit
- Definition Classes
- SpecializedLiftActor → SimpleActor
- def !!(msg: Any): Box[Any]
- Definition Classes
- LiftActor → TypedActor
- def !!(msg: Any, timeout: Long): Box[Any]
- Definition Classes
- LiftActor → TypedActor
- def !<(msg: Any): LAFuture[Any]
- Definition Classes
- LiftActor
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def !?(timeout: Long, message: Any): Box[Any]
- Definition Classes
- LiftActor → TypedActor
- def !?(msg: Any): Any
- Definition Classes
- LiftActor → TypedActor
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def addSession(liftSession: LiftSession, req: Req, userAgent: Box[String], ipAddress: Box[String]): Unit
Adds a new session to SessionMaster
- def around[R](f: => R): R
- Attributes
- protected
- Definition Classes
- SpecializedLiftActor
- def aroundLoans: List[CommonLoanWrapper]
- Attributes
- protected
- Definition Classes
- SpecializedLiftActor
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def breakOutAllComet(): Unit
End comet long polling for all sessions.
End comet long polling for all sessions. This allows a clean reload of Nginx because Nginx children stick around for long polling.
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def exceptionHandler: PartialFunction[Throwable, Unit]
- Attributes
- protected
- Definition Classes
- SpecializedLiftActor
- def execTranslate(f: (Any) => Unit)(v: Any): Unit
- Attributes
- protected
- Definition Classes
- LiftActor → SpecializedLiftActor
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def forwardMessageTo(msg: Any, forwardTo: TypedActor[Any, Any]): Unit
- Attributes
- protected
- Definition Classes
- LiftActor → ForwardableActor
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- var getIpFromReq: (Req) => Box[String]
If you have a rule other than
Box !! req.request.remoteAddress
for calculating the remote address, change this function - def getSession(req: HTTPRequest, otherId: Box[String]): Box[LiftSession]
Returns a LiftSession or Empty if not found
- def getSession(httpSession: => HTTPSession, otherId: Box[String]): Box[LiftSession]
Returns a LiftSession or Empty if not found
- def getSession(id: String, otherId: Box[String]): Box[LiftSession]
- def getSession(req: Req, otherId: Box[String]): Box[LiftSession]
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def highPriorityReceive: Box[PartialFunction[Any, Unit]]
- Attributes
- protected
- Definition Classes
- SpecializedLiftActor
- def insertMsgAtHeadOfQueue_!(msg: Any): Unit
- Attributes
- protected
- Definition Classes
- SpecializedLiftActor
- def isDead(sessionId: String): Boolean
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val logger: Logger
- Attributes
- protected
- Definition Classes
- Loggable
- Annotations
- @transient()
- def messageHandler: PartialFunction[Any, Unit]
- Attributes
- protected
- Definition Classes
- SessionMaster → SpecializedLiftActor
- 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()
- def reply(v: Any): Unit
- Attributes
- protected
- Definition Classes
- LiftActor → ForwardableActor
- def send(msg: Any): Unit
- Definition Classes
- SpecializedLiftActor
- def sendAndGetFuture(msg: Any): LAFuture[Any]
- Definition Classes
- LiftActor
- def sendAndGetReply(timeout: Long, msg: Any): Any
- Definition Classes
- LiftActor
- def sendAndGetReply(msg: Any): Any
- Definition Classes
- LiftActor
- var sessionCheckFuncs: List[(Map[String, SessionInfo], (SessionInfo) => Unit) => Unit]
A list of functions that are run every 10 seconds.
A list of functions that are run every 10 seconds. The first param is map containing the session ID and the sessions. The second param is a function to call to destroy the session.
- var sessionWatchers: List[LiftActor]
Put an Actor in this list and the Actor will receive a message every 10 seconds with the current list of sessions: SessionWatcherInfo
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def testTranslate(f: (Any) => Boolean)(v: Any): Boolean
- Attributes
- protected
- Definition Classes
- LiftActor → SpecializedLiftActor
- def toString(): String
- Definition Classes
- AnyRef → Any
- 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()