Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ServerSessionPool

Maintains a pool of Server Sessions. For internal use only

internal

Hierarchy层级

  • ServerSessionPool

Index索引

Constructors构造函数

Properties属性

Methods方法

Constructors构造函数

constructor

Properties属性

sessions

sessions: ServerSession[]

topology

topology: Topology

Methods方法

acquire

  • Acquire a Server Session from the pool. Iterates through each session in the pool, removing any stale sessions along the way. The first non-stale session found is removed from the pool and returned. If no non-stale session is found, a new ServerSession is created.

    Returns返回ServerSession

endAllPooledSessions

  • endAllPooledSessions(callback?: Callback<void>): void
  • Ends all sessions in the session pool

    Parameters参数

    Returns返回void

release

  • Release a session to the session pool Adds the session back to the session pool if the session has not timed out yet. This method also removes any stale sessions from the pool.

    Parameters参数

    Returns返回void

Generated using TypeDoc