Skip to main content
Version: 3.3

SessionPoolOptions

Index

Properties

optionalblockedStatusCodes

blockedStatusCodes?: number[] = <p>[401, 403, 429]</p>

Specifies which response status codes are considered as blocked. Session connected to such request will be marked as retired.

optionalcreateSessionFunction

createSessionFunction?: CreateSession

Custom function that should return Session instance. Any error thrown from this function will terminate the process. Function receives SessionPool instance as a parameter

optionalmaxPoolSize

maxPoolSize?: number = <p>1000</p>

Maximum size of the pool. Indicates how many sessions are rotated.

optionalpersistStateKey

persistStateKey?: string = <p>SESSION_POOL_STATE</p>

Session pool persists it's state under this key in Key value store.

optionalpersistStateKeyValueStoreId

persistStateKeyValueStoreId?: string

Name or Id of KeyValueStore where is the SessionPool state stored.

optionalsessionOptions

sessionOptions?: SessionOptions

The configuration options for Session instances.