Class ReplicatedSetEntity<T>

Object
kalix.javasdk.replicatedentity.ReplicatedEntity<ReplicatedSet<T>>
kalix.javasdk.replicatedentity.ReplicatedSetEntity<T>

public class ReplicatedSetEntity<T> extends ReplicatedEntity<ReplicatedSet<T>>
  • Constructor Details

    • ReplicatedSetEntity

      public ReplicatedSetEntity()
  • Method Details

    • emptyData

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