| Interface | Description |
|---|---|
| ConnectionCachePolicy |
Computes the keep-alive deadline for a cached connection ("when to keep or release
connections?").
|
| NanoTimeSource |
Abstraction over
System.nanoTime() so retry loops and keep-alive deadlines in the
read/write splitting helpers can be unit-tested deterministically without real waits. |
| Class | Description |
|---|---|
| DefaultCachePolicy |
Default
ConnectionCachePolicy, reproducing the legacy
AbstractReadWriteSplittingPlugin.getKeepAliveTimeout behavior: pooled connections defer
their lifetime to the pool (deadline 0); non-pooled connections use
cachedReaderKeepAliveTimeoutMs (default 0 = keep reusing indefinitely). |