Evolver

fun interface Evolver<EVENT, STATE>

A Decider or View related interface, which can apply EVENT<(s) to a aggregate/projection/view STATE instance

Parameters

EVENT

The type of Events that can be applied in the .applyEvent

STATE

The type of aggregate/projection/view STATE that .applyEvent supports

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract fun applyEvent(event: EVENT, state: STATE?): STATE?

Apply the EVENT to the aggregate/projection/view STATE instance

Note: This method is called evolve in the decider pattern