Package kalix.javasdk.replicatedentity
Class ReplicatedCounterEntity
Object
kalix.javasdk.replicatedentity.ReplicatedEntity<ReplicatedCounter>
kalix.javasdk.replicatedentity.ReplicatedCounterEntity
-
Nested Class Summary
Nested classes/interfaces inherited from class kalix.javasdk.replicatedentity.ReplicatedEntity
ReplicatedEntity.Effect<R> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal ReplicatedCounteremptyData(ReplicatedDataFactory factory) Implement by returning the initial empty replicated data object.Methods inherited from class kalix.javasdk.replicatedentity.ReplicatedEntity
_internalSetCommandContext, commandContext, effects
-
Constructor Details
-
ReplicatedCounterEntity
public ReplicatedCounterEntity()
-
-
Method Details
-
emptyData
Description copied from class:ReplicatedEntityImplement 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:
emptyDatain classReplicatedEntity<ReplicatedCounter>- Parameters:
factory- the factory to create the initial empty replicated data object
-