Class ReplicatedCounterEntity

Object
kalix.javasdk.replicatedentity.ReplicatedEntity<ReplicatedCounter>
kalix.javasdk.replicatedentity.ReplicatedCounterEntity

public class ReplicatedCounterEntity extends ReplicatedEntity<ReplicatedCounter>
  • Constructor Details

    • ReplicatedCounterEntity

      public ReplicatedCounterEntity()
  • Method Details

    • emptyData

      public final ReplicatedCounter 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<ReplicatedCounter>
      Parameters:
      factory - the factory to create the initial empty replicated data object