Class ReplicatedVoteEntity

Object
kalix.javasdk.replicatedentity.ReplicatedEntity<ReplicatedVote>
kalix.javasdk.replicatedentity.ReplicatedVoteEntity

public class ReplicatedVoteEntity extends ReplicatedEntity<ReplicatedVote>
  • Constructor Details

    • ReplicatedVoteEntity

      public ReplicatedVoteEntity()
  • Method Details

    • emptyData

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