Package kalix.javasdk.replicatedentity
Interface ReplicatedEntityOptions
- All Superinterfaces:
kalix.javasdk.impl.ComponentOptions
,EntityOptions
Root entity options for all Replicated Entities.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ReplicatedEntityOptions
defaults()
Create default Replicated Entity options.withPassivationStrategy
(PassivationStrategy strategy) withWriteConsistency
(WriteConsistency writeConsistency) Set the write consistency setting for replication of the replicated entity state.Get the current write consistency setting for replication of the replicated entity state.Methods inherited from interface kalix.javasdk.EntityOptions
forwardHeaders, withForwardHeaders
-
Method Details
-
passivationStrategy
PassivationStrategy passivationStrategy() -
withPassivationStrategy
-
writeConsistency
WriteConsistency writeConsistency()Get the current write consistency setting for replication of the replicated entity state.- Returns:
- the write consistency setting for a replicated entity
-
withWriteConsistency
Set the write consistency setting for replication of the replicated entity state.- Parameters:
writeConsistency
- write consistency to use
-
defaults
Create default Replicated Entity options.- Returns:
- the entity options
-