Class ReplicatedMapEntity<K,V extends kalix.replicatedentity.ReplicatedData>

Object
kalix.javasdk.replicatedentity.ReplicatedEntity<ReplicatedMap<K,V>>
kalix.javasdk.replicatedentity.ReplicatedMapEntity<K,V>

public class ReplicatedMapEntity<K,V extends kalix.replicatedentity.ReplicatedData> extends ReplicatedEntity<ReplicatedMap<K,V>>
  • Constructor Details

    • ReplicatedMapEntity

      public ReplicatedMapEntity()
  • Method Details

    • emptyData

      public final ReplicatedMap<K,V> emptyData(ReplicatedDataFactory factory)
      Description copied from class: ReplicatedEntity
      Implement by returning the initial empty replicated data object. This object will be passed into the command handlers.

      Also known as the "zero" or "neutral" state.

      The initial data cannot be null.

      Specified by:
      emptyData in class ReplicatedEntity<ReplicatedMap<K,V extends kalix.replicatedentity.ReplicatedData>>
      Parameters:
      factory - the factory to create the initial empty replicated data object