Class ActorRuntimeConfig

java.lang.Object
io.dapr.actors.runtime.ActorRuntimeConfig

public class ActorRuntimeConfig extends Object
Represents the configuration for the Actor Runtime.
  • Method Details

    • getActorIdleTimeout

      public Duration getActorIdleTimeout()
      Gets the duration for Actors' timeout.
      Returns:
      Duration for Actors' timeout.
    • setActorIdleTimeout

      public ActorRuntimeConfig setActorIdleTimeout(Duration actorIdleTimeout)
      Sets the duration for Actors' timeout.
      Parameters:
      actorIdleTimeout - Duration for Actors' timeout.
      Returns:
      This instance.
    • getActorScanInterval

      public Duration getActorScanInterval()
      Gets the duration to scan for Actors.
      Returns:
      The duration to scan for Actors.
    • setActorScanInterval

      public ActorRuntimeConfig setActorScanInterval(Duration actorScanInterval)
      Sets the duration to scan for Actors.
      Parameters:
      actorScanInterval - The duration to scan for Actors.
      Returns:
      This instance.
    • getDrainOngoingCallTimeout

      public Duration getDrainOngoingCallTimeout()
      Gets the timeout to drain ongoing calls.
      Returns:
      The timeout to drain ongoing calls.
    • setDrainOngoingCallTimeout

      public ActorRuntimeConfig setDrainOngoingCallTimeout(Duration drainOngoingCallTimeout)
      Sets the timeout to drain ongoing calls.
      Parameters:
      drainOngoingCallTimeout - The timeout to drain ongoing calls.
      Returns:
      This instance.
    • getDrainBalancedActors

      public Boolean getDrainBalancedActors()
      Gets whether balanced actors should be drained.
      Returns:
      Whether balanced actors should be drained.
    • setDrainBalancedActors

      public ActorRuntimeConfig setDrainBalancedActors(Boolean drainBalancedActors)
      Sets whether balanced actors should be drained.
      Parameters:
      drainBalancedActors - Whether balanced actors should be drained.
      Returns:
      This instance.
    • getRemindersStoragePartitions

      public Integer getRemindersStoragePartitions()
      Gets the number of storage partitions for Actor reminders.
      Returns:
      The number of Actor reminder storage partitions.
    • setRemindersStoragePartitions

      public ActorRuntimeConfig setRemindersStoragePartitions(Integer remindersStoragePartitions)
      Sets the number of storage partitions for Actor reminders.
      Parameters:
      remindersStoragePartitions - The number of storage partitions for Actor reminders.
      Returns:
      This instance.