Package io.dapr.actors.runtime
Class ActorRuntimeConfig
java.lang.Object
io.dapr.actors.runtime.ActorRuntimeConfig
Represents the configuration for the Actor Runtime.
-
Method Summary
Modifier and TypeMethodDescriptionGets the duration for Actors' timeout.Gets the duration to scan for Actors.Gets whether balanced actors should be drained.Gets the timeout to drain ongoing calls.Gets the number of storage partitions for Actor reminders.setActorIdleTimeout
(Duration actorIdleTimeout) Sets the duration for Actors' timeout.setActorScanInterval
(Duration actorScanInterval) Sets the duration to scan for Actors.setDrainBalancedActors
(Boolean drainBalancedActors) Sets whether balanced actors should be drained.setDrainOngoingCallTimeout
(Duration drainOngoingCallTimeout) Sets the timeout to drain ongoing calls.setRemindersStoragePartitions
(Integer remindersStoragePartitions) Sets the number of storage partitions for Actor reminders.
-
Method Details
-
getActorIdleTimeout
Gets the duration for Actors' timeout.- Returns:
- Duration for Actors' timeout.
-
setActorIdleTimeout
Sets the duration for Actors' timeout.- Parameters:
actorIdleTimeout
- Duration for Actors' timeout.- Returns:
- This instance.
-
getActorScanInterval
Gets the duration to scan for Actors.- Returns:
- The duration to scan for Actors.
-
setActorScanInterval
Sets the duration to scan for Actors.- Parameters:
actorScanInterval
- The duration to scan for Actors.- Returns:
- This instance.
-
getDrainOngoingCallTimeout
Gets the timeout to drain ongoing calls.- Returns:
- The timeout to drain ongoing calls.
-
setDrainOngoingCallTimeout
Sets the timeout to drain ongoing calls.- Parameters:
drainOngoingCallTimeout
- The timeout to drain ongoing calls.- Returns:
- This instance.
-
getDrainBalancedActors
Gets whether balanced actors should be drained.- Returns:
- Whether balanced actors should be drained.
-
setDrainBalancedActors
Sets whether balanced actors should be drained.- Parameters:
drainBalancedActors
- Whether balanced actors should be drained.- Returns:
- This instance.
-
getRemindersStoragePartitions
Gets the number of storage partitions for Actor reminders.- Returns:
- The number of Actor reminder storage partitions.
-
setRemindersStoragePartitions
Sets the number of storage partitions for Actor reminders.- Parameters:
remindersStoragePartitions
- The number of storage partitions for Actor reminders.- Returns:
- This instance.
-