DBSessionRepo

org.beangle.security.session.jdbc.DBSessionRepo
class DBSessionRepo(domainProvider: DomainProvider, dataSource: DataSource, cacheManager: CacheManager, serializer: BinarySerializer) extends CacheSessionRepo, EventPublisher, Initializing

Attributes

Graph
Supertypes
trait EventPublisher
trait Logging
trait Initializing
trait SessionRepo
class Object
trait Matchable
class Any
Show all
Known subtypes

Members list

Value members

Concrete methods

override def expire(sessionId: String): Unit

过期指定会话 同时更新数据库和缓存

过期指定会话 同时更新数据库和缓存

Attributes

Definition Classes
SessionRepo
override def findByPrincipal(principal: String): Seq[Session]

Attributes

Definition Classes
SessionRepo
override def flush(session: Session): Boolean

后端是否依然存在该会话

后端是否依然存在该会话

Value parameters

session

会话

Attributes

Returns

true如果仍然存在

Definition Classes
override def init(): Unit

do initialization.

do initialization.

Attributes

Definition Classes
CacheSessionRepo -> Initializing

Inherited methods

override def access(sessionId: String, accessAt: Instant): Option[Session]

Attributes

Definition Classes
CacheSessionRepo -> SessionRepo
Inherited from:
CacheSessionRepo
final def evict(sessionId: String): Unit

Attributes

Inherited from:
CacheSessionRepo
override def get(sessionId: String, refresh: Boolean): Option[Session]

Attributes

Definition Classes
CacheSessionRepo -> SessionRepo
Inherited from:
CacheSessionRepo
def publish(event: Event): Unit

Attributes

Inherited from:
EventPublisher
protected def put(session: Session): Unit

Attributes

Inherited from:
CacheSessionRepo

Concrete fields

var builder: SessionBuilder
var domainId: Int
var sessionTable: String

Inherited fields

Attributes

Inherited from:
CacheSessionRepo
var flushInterval: Int

flush 间隔,以秒计,默认3分钟

flush 间隔,以秒计,默认3分钟

Attributes

Inherited from:
CacheSessionRepo
protected val logger: Logger

Attributes

Inherited from:
Logging
var multicaster: EventMulticaster

Attributes

Inherited from:
EventPublisher