package view

  1. Alphabetic
  1. Public
  2. Protected

Type Members

  1. trait UpdateContext extends ViewContext with MetadataContext

    Context for view update calls.

  2. abstract class View[S] extends AnyRef

    Kalix applications follow the Command Query Responsibility Segregation (CQRS) pattern (see

    Kalix applications follow the Command Query Responsibility Segregation (CQRS) pattern (see

    Kalix' Entities represent the command side where you change the state of your model in a strictly consistent and isolated manner. Kalix' Views represent the query side of your application. Views are optimized for reads and allow you to query your model by fields other than the entity identifier.

    When implementing a View, you define what will be its internal state (your view model) and how you want to query it. The Query string defines which fields will be indexed and how the query will be executed.

    The query is executed by the Kalix when a request is made to the View.

    Views are updated in response to Event Sourced Entity events, Value Entity state changes or messages from a Topic.

    Each incoming change is handled by a command handler. Command handlers are methods returning an kalix.scalasdk.view.View.UpdateEffect. The command handler is responsible for updating the View state.


    The type of the state for this view.

  3. trait ViewContext extends Context

    Context for views.

  4. trait ViewCreationContext extends ViewContext

    Creation context for View entities.

    Creation context for View entities.

    This may be accepted as an argument to the constructor of a view.

  5. trait ViewOptions extends ComponentOptions
  6. trait ViewProvider extends AnyRef

Value Members

  1. object View
  2. object ViewOptions