JBackendBuilder

edomata.java.JBackendBuilder
See theJBackendBuilder companion object
final class JBackendBuilder[S, E, R, N]

Java-friendly builder for the Doobie event sourcing backend.

Attributes

Companion
object
Source
JBackendBuilder.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def build(runtime: EdomataRuntime): JBackend[S, E, R, N]

Build the backend. This allocates resources (DB connections, caches).

Build the backend. This allocates resources (DB connections, caches).

The returned JBackend implements AutoCloseable — use try-with-resources.

Attributes

Throws
IllegalStateException

if required configuration is missing

Source
JBackendBuilder.scala
def dataSource(ds: DataSource): JBackendBuilder[S, E, R, N]

Set the JDBC DataSource.

Set the JDBC DataSource.

Attributes

Source
JBackendBuilder.scala
def eventCodec(codec: JCodec[E]): JBackendBuilder[S, E, R, N]

Set the event codec using a JCodec.

Set the event codec using a JCodec.

Attributes

Source
JBackendBuilder.scala
def inMemSnapshotSize(size: Int): JBackendBuilder[S, E, R, N]

Set the in-memory snapshot cache size.

Set the in-memory snapshot cache size.

Attributes

Source
JBackendBuilder.scala
def maxRetry(n: Int): JBackendBuilder[S, E, R, N]

Set the maximum number of retries on version conflict.

Set the maximum number of retries on version conflict.

Attributes

Source
JBackendBuilder.scala
def namespace(ns: String): JBackendBuilder[S, E, R, N]

Set the PostgreSQL namespace (uses prefixed naming strategy).

Set the PostgreSQL namespace (uses prefixed naming strategy).

Attributes

Source
JBackendBuilder.scala
def notificationCodec(codec: JCodec[N]): JBackendBuilder[S, E, R, N]

Set the notification codec using a JCodec.

Set the notification codec using a JCodec.

Attributes

Source
JBackendBuilder.scala
def schemaNamespace(ns: String): JBackendBuilder[S, E, R, N]

Set the PostgreSQL namespace with schema naming strategy.

Set the PostgreSQL namespace with schema naming strategy.

Attributes

Source
JBackendBuilder.scala
def skipSetup(skip: Boolean): JBackendBuilder[S, E, R, N]

Skip automatic DDL setup (for Flyway/manual migrations).

Skip automatic DDL setup (for Flyway/manual migrations).

Attributes

Source
JBackendBuilder.scala