Annotation Type DataSourceConfig


@Retention(CLASS) @Target(TYPE) public @interface DataSourceConfig

Connection pool settings, compiled in.

Each attribute is the cn1.datasource.* key named beside it, and sets that key's value at the bottom of the configuration, so DATABASE_URL, a properties file or the environment still override it. An attribute left at its default sets nothing. Keep credentials out of source: a URL may name an environment variable as ${NAME}, resolved when the server starts.

  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    int
    cn1.datasource.pool.borrowTimeoutMillis.
    int
    cn1.datasource.busyTimeoutMillis: how long SQLite waits on a locked file.
    int
    cn1.datasource.pool.size.
    cn1.datasource.url: a SQLite path, or a postgres:// or mysql:// URL.
  • Element Details

    • url

      String url
      cn1.datasource.url: a SQLite path, or a postgres:// or mysql:// URL.
      Default:
      ""
    • poolSize

      int poolSize
      cn1.datasource.pool.size.
      Default:
      -1
    • borrowTimeoutMillis

      int borrowTimeoutMillis
      cn1.datasource.pool.borrowTimeoutMillis.
      Default:
      -1
    • busyTimeoutMillis

      int busyTimeoutMillis
      cn1.datasource.busyTimeoutMillis: how long SQLite waits on a locked file.
      Default:
      -1