Package kalix.javasdk.replicatedentity
Class ReplicatedRegisterEntity<T>
Object
kalix.javasdk.replicatedentity.ReplicatedEntity<ReplicatedRegister<T>>
kalix.javasdk.replicatedentity.ReplicatedRegisterEntity<T>
-
Nested Class Summary
Nested classes/interfaces inherited from class kalix.javasdk.replicatedentity.ReplicatedEntity
ReplicatedEntity.Effect<R> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal ReplicatedRegister<T> emptyData(ReplicatedDataFactory factory) Implement by returning the initial empty replicated data object.abstract TImplement to set the default empty value for the register.Methods inherited from class kalix.javasdk.replicatedentity.ReplicatedEntity
_internalSetCommandContext, commandContext, effects
-
Constructor Details
-
ReplicatedRegisterEntity
public ReplicatedRegisterEntity()
-
-
Method Details
-
emptyValue
Implement to set the default empty value for the register.- Returns:
- the default empty value
-
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<ReplicatedRegister<T>>- Parameters:
factory- the factory to create the initial empty replicated data object
-