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