JBackend

edomata.java.JBackend
final class JBackend[S, E, R, N] extends AutoCloseable

Java-friendly backend facade for event sourcing.

Implements AutoCloseable — use with try-with-resources.

Type parameters

E

event type

N

notification type

R

rejection type

S

state type

Attributes

Source
JBackend.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def close(): Unit

Release all backend resources.

Release all backend resources.

Attributes

Source
JBackend.scala
def handle[C](handler: JCommandHandler[C, S, E, R, N], command: JCommandMessage[C]): CompletableFuture[JEither[List[R], Unit]]

Handle a command using the given handler.

Handle a command using the given handler.

Attributes

Returns

a future that completes with either rejection reasons or success

Source
JBackend.scala

Access the journal reader.

Access the journal reader.

Attributes

Source
JBackend.scala

Access the outbox reader.

Access the outbox reader.

Attributes

Source
JBackend.scala