JdbcStorage

class JdbcStorage(jdbc: String, user: String = "", password: String = "", val clock: Clock = Clock.System, executor: Executor = Executors.newFixedThreadPool(4), keySize: Int = 12) : BaseStorage

Constructors

Link copied to clipboard
constructor(jdbc: String, user: String = "", password: String = "", clock: Clock = Clock.System, executor: Executor = Executors.newFixedThreadPool(4), keySize: Int = 12)

Types

Link copied to clipboard
object Companion
Link copied to clipboard
class ConnectionPoolEntry(val connection: Connection, val timeLastUsed: Instant)

Properties

Link copied to clipboard
val clock: Clock

Functions

Link copied to clipboard
open suspend override fun getTable(spec: StorageTableSpec): StorageTable

Get the table with specific name and features.

Link copied to clipboard
open suspend override fun purgeExpired()

Reclaim the storage occupied by expired entries across all tables in this Storage object (even if these tables were never accessed using getTable in this session).