Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ServerSessionPool

Maintains a pool of Server Sessions. For internal use only

Hierarchy

  • ServerSessionPool

Index

Constructors

Properties

sessions: ServerSession[]
topology: Topology

Methods

  • 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(callback?: Callback<void>): void
  • 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