Package kalix.javasdk.replicatedentity
Interface ReplicatedDataFactory
public interface ReplicatedDataFactory
Factory for creating Replicated Data objects.
This is used both by Replicated Entity contexts that allow creating Replicated Data objects, and by Replicated Data objects that allow nesting other Replicated Data.
Replicated Data objects may only be created by a supplied Replicated Data factory. Replicated Data objects created any other way will not be known by the library and so won't have their deltas synced to and from the proxy.
-
Method Summary
Modifier and TypeMethodDescriptionCreate a new counter.<T> ReplicatedRegister
<T> newRegister
(T value) Create a new ReplicatedRegister.<K> ReplicatedCounterMap
<K> Create a new map of counters.<K,
V extends kalix.replicatedentity.ReplicatedData>
ReplicatedMap<K, V> Create a new ReplicatedMap.<K,
V> ReplicatedMultiMap <K, V> Create a new multimap (map of sets).<K,
V> ReplicatedRegisterMap <K, V> Create a new map of registers.<T> ReplicatedSet
<T> Create a new ReplicatedSet.newVote()
Create a new Vote.
-
Method Details
-
newCounter
ReplicatedCounter newCounter()Create a new counter. -
newReplicatedCounterMap
Create a new map of counters. -
newReplicatedSet
Create a new ReplicatedSet. -
newReplicatedMultiMap
Create a new multimap (map of sets). -
newRegister
Create a new ReplicatedRegister. -
newReplicatedRegisterMap
Create a new map of registers. -
newReplicatedMap
Create a new ReplicatedMap. -
newVote
ReplicatedVote newVote()Create a new Vote.
-