Class DataSourceFactory

java.lang.Object
com.knezevic.edaf.v3.persistence.jdbc.DataSourceFactory

public final class DataSourceFactory extends Object
Creates pooled DataSource instances used by EDAF persistence/query layers.

For SQLite, the factory applies concurrency-friendly defaults that reduce lock contention:

  • journal_mode=WAL: enables concurrent readers with one writer.
  • busy_timeout=10000: lets SQLite wait before returning SQLITE_BUSY.
  • synchronous=NORMAL: practical durability/performance trade-off for run telemetry.
  • small multi-connection pool: prevents local self-starvation between writer and stop-poll reads.

For non-SQLite JDBC URLs, conservative generic pool defaults are used.