Session

trait Session extends Externalizable
Companion:
object
trait Externalizable
trait Serializable
class Object
trait Matchable
class Any

Value members

Abstract methods

def access(accessAt: Instant): Long

访问session

访问session

Returns:

据上一次的间隔秒数,-1 表示已经过期

def expired: Boolean
def id: String
def lastAccessAt: Instant
def loginAt: Instant
def principal: Principal
def ttiSeconds: Int
def ttiSeconds_=(seconds: Int): Unit

Inherited methods

def readExternal(x$0: ObjectInput): Unit
Inherited from:
Externalizable
def writeExternal(x$0: ObjectOutput): Unit
Inherited from:
Externalizable