Package

io.funcqrs

behavior

Permalink

package behavior

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. behavior
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Type Members

  1. case class Actions[A <: AggregateLike](cmdHandlerInvokers: CommandHandlerToInvoker[ProtocolAliases.Protocol.ProtocolCommand, ProtocolAliases.Protocol.ProtocolEvent] = PartialFunction.empty, rejectCmdInvokers: CommandHandlerToInvoker[ProtocolAliases.Protocol.ProtocolCommand, ProtocolAliases.Protocol.ProtocolEvent] = PartialFunction.empty, eventHandlers: EventHandler[ProtocolAliases.Protocol.ProtocolEvent, A] = PartialFunction.empty) extends AggregateAliases with Product with Serializable

    Permalink
  2. type Behavior[A <: AggregateLike] = PartialFunction[State[A], Actions[A]]

    Permalink
  3. abstract class ClassTagExtractor[T] extends AnyRef

    Permalink

    extractor to convert a total function into a partial function internally _

  4. trait CommandHandlerInvoker[-C <: DomainCommand, E <: DomainEvent] extends AnyRef

    Permalink

    A CommandHandlerInvoker holds a PartialFunction from DomainCommand to F[immutable.Seq[DomainEvent]].

    A CommandHandlerInvoker holds a PartialFunction from DomainCommand to F[immutable.Seq[DomainEvent]]. F being the higher-kind wrapping the result of handling the command.

    Invokers are delayed execution of Command Handlers and abstract over the Functor that will be returned when handling the command. Fun.CQRS provides three CommandHandlerInvoker implementations: IdCommandHandlerInvoker (returns the Identity Functor), TryCommandHandlerInvoker and FutureCommandHandlerInvoker.

  5. type CommandHandlerToInvoker[C <: DomainCommand, E <: DomainEvent] = PartialFunction[C, CommandHandlerInvoker[C, E]]

    Permalink

    A CommandToEvents is a PartialFunction from a DomainCommand to a CommandHandlerInvoker

  6. type EventHandler[E <: DomainEvent, A <: AggregateLike] = PartialFunction[E, A]

    Permalink

    An EventHandler is a PartialFunction from a DomainEvent to an Aggregate

    An EventHandler is a PartialFunction from a DomainEvent to an Aggregate

    Typically it is used to construct or update an aggregate. In case of update, an Aggregate instance must be in scope.

  7. case class FutureCommandHandlerInvoker[C <: DomainCommand, E <: DomainEvent](commandHandler: (C) ⇒ Future[Seq[E]]) extends CommandHandlerInvoker[C, E] with Product with Serializable

    Permalink

    A CommandHandlerInvoker which F type member is defined as Future

  8. case class IdCommandHandlerInvoker[C <: DomainCommand, E <: DomainEvent](commandHandler: (C) ⇒ Identity[Seq[E]]) extends CommandHandlerInvoker[C, E] with Product with Serializable

    Permalink

    A CommandHandlerInvoker which F type member is defined as Identity

  9. case class Initialized[A <: AggregateLike](aggregate: A) extends State[A] with Product with Serializable

    Permalink
  10. sealed trait State[+A <: AggregateLike] extends AnyRef

    Permalink
  11. case class TryCommandHandlerInvoker[C <: DomainCommand, E <: DomainEvent](commandHandler: (C) ⇒ Try[Seq[E]]) extends CommandHandlerInvoker[C, E] with Product with Serializable

    Permalink

    A CommandHandlerInvoker which F type member is defined as Try

  12. case class Uninitialized[A <: AggregateLike](aggregateId: A.Id) extends State[A] with Product with Serializable

    Permalink

Value Members

  1. object Actions extends Serializable

    Permalink
  2. def action[A <: AggregateLike]: Actions[A]

    Permalink
  3. def actions[A <: AggregateLike]: Actions[A]

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped