final case class DbLockedConnectionConfig(passiveCheckPeriod: PositiveFiniteDuration = PositiveFiniteDuration.ofSeconds(15), healthCheckPeriod: PositiveFiniteDuration = PositiveFiniteDuration.ofSeconds(5), healthCheckTimeout: PositiveFiniteDuration = PositiveFiniteDuration.ofSeconds(15), connectionTimeout: PositiveFiniteDuration = PositiveFiniteDuration.ofSeconds(10), keepAliveIdle: Option[PositiveFiniteDuration] = None, keepAliveInterval: Option[PositiveFiniteDuration] = None, keepAliveCount: Option[Int] = None, initialAcquisitionMaxRetries: Int = 5, initialAcquisitionInterval: PositiveFiniteDuration = PositiveFiniteDuration.ofMillis(200), lock: DbLockConfig = DbLockConfig()) extends Product with Serializable
Configuration of a DB-locked connection, i.e., a database connection with an associated DB lock.
- passiveCheckPeriod
How long to wait between trying to become active.
- healthCheckPeriod
Health check period, i.e., how long to wait between one health check completed and the next to start.
- healthCheckTimeout
Timeout for running a health check in seconds granularity.
- connectionTimeout
Timeout for requesting a new connection from the underlying database driver in seconds granularity.
- keepAliveIdle
TCP keep-alive idle time, i.e., how long to wait until sending a keep-alive message when idle.
- keepAliveInterval
TCP keep-alive interval, i.e., how long to wait until resending an unanswered keep-alive message.
- keepAliveCount
TCP keep-alive count, i.e., how many unanswered keep-alive messages required to consider the connection lost.
- initialAcquisitionMaxRetries
Maximum number of retries when trying to acquire the lock for the first time before trying to acquire the lock in a background task.
- initialAcquisitionInterval
Retry intervals during the initial attempts to acquire the lock.
- lock
Configuration of the DB locks used by the pool.
- Alphabetic
- By Inheritance
- DbLockedConnectionConfig
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new DbLockedConnectionConfig(passiveCheckPeriod: PositiveFiniteDuration = PositiveFiniteDuration.ofSeconds(15), healthCheckPeriod: PositiveFiniteDuration = PositiveFiniteDuration.ofSeconds(5), healthCheckTimeout: PositiveFiniteDuration = PositiveFiniteDuration.ofSeconds(15), connectionTimeout: PositiveFiniteDuration = PositiveFiniteDuration.ofSeconds(10), keepAliveIdle: Option[PositiveFiniteDuration] = None, keepAliveInterval: Option[PositiveFiniteDuration] = None, keepAliveCount: Option[Int] = None, initialAcquisitionMaxRetries: Int = 5, initialAcquisitionInterval: PositiveFiniteDuration = PositiveFiniteDuration.ofMillis(200), lock: DbLockConfig = DbLockConfig())
- passiveCheckPeriod
How long to wait between trying to become active.
- healthCheckPeriod
Health check period, i.e., how long to wait between one health check completed and the next to start.
- healthCheckTimeout
Timeout for running a health check in seconds granularity.
- connectionTimeout
Timeout for requesting a new connection from the underlying database driver in seconds granularity.
- keepAliveIdle
TCP keep-alive idle time, i.e., how long to wait until sending a keep-alive message when idle.
- keepAliveInterval
TCP keep-alive interval, i.e., how long to wait until resending an unanswered keep-alive message.
- keepAliveCount
TCP keep-alive count, i.e., how many unanswered keep-alive messages required to consider the connection lost.
- initialAcquisitionMaxRetries
Maximum number of retries when trying to acquire the lock for the first time before trying to acquire the lock in a background task.
- initialAcquisitionInterval
Retry intervals during the initial attempts to acquire the lock.
- lock
Configuration of the DB locks used by the pool.
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- val connectionTimeout: PositiveFiniteDuration
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- val healthCheckPeriod: PositiveFiniteDuration
- val healthCheckTimeout: PositiveFiniteDuration
- val initialAcquisitionInterval: PositiveFiniteDuration
- val initialAcquisitionMaxRetries: Int
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val keepAliveCount: Option[Int]
- val keepAliveIdle: Option[PositiveFiniteDuration]
- val keepAliveInterval: Option[PositiveFiniteDuration]
- val lock: DbLockConfig
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- val passiveCheckPeriod: PositiveFiniteDuration
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])