final case class DbLockedConnectionConfig(passiveCheckPeriod: PositiveFiniteDuration = PositiveFiniteDuration.ofSeconds(15), healthCheckPeriod: PositiveFiniteDuration = PositiveFiniteDuration.ofSeconds(5), 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)) 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 health checks of the connection and lock.
- connectionTimeout
Timeout for requesting a new connection from the underlying database driver.
- 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.
- 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), 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))
- passiveCheckPeriod
How long to wait between trying to become active.
- healthCheckPeriod
Health check period, i.e., how long to wait between health checks of the connection and lock.
- connectionTimeout
Timeout for requesting a new connection from the underlying database driver.
- 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.
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() @HotSpotIntrinsicCandidate()
- val connectionTimeout: PositiveFiniteDuration
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- val healthCheckPeriod: 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]
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- 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])