ApplicationServiceMixin<TData extends Object, TEvent extends Object, TValue extends Object, TId extends AggregateId, TState extends AggregateState<TValue> , TAggregate extends Aggregate<TEvent, TValue, TId, TState> > mixin
Application service base mixin.
- Type parameter
TData
- StreamEvent.data content type - Type parameter
TEvent
- Aggregate.changes event type - Type parameter
TValue
- AggregateState.value type - Type parameter
TId
- Aggregate.id type - Type parameter
TState
- AggregateState type - Type parameter
TAggregate
- Aggregate type
- Mixin Applications
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isFrozen → bool
-
True when configuration is frozen (no changes are allowed)
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
store
→ AggregateStore<
TData, TEvent, TValue, TId, TState, TAggregate> -
Get AggregateStore which this service operate on
no setter
Methods
-
freeze(
) → void - Call when configuration is complete to prevent modifications later
-
handle<
TCommand extends Object> (TCommand command) → FutureOr< AggregateCommandResult< TEvent, TValue, TId, TState, TAggregate> > -
The generic command handler. Call this function from your edge (API).
Use parameter
command
to execute Returns theAggregateCommandResult
of the execution -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited