Package kalix.javasdk

Interface PassivationStrategy


public interface PassivationStrategy
A passivation strategy.
  • Method Summary

    Static Methods
    Modifier and Type
    Method
    Description
    Create a passivation strategy that passivates the entity after the default duration (30 seconds) of inactivity.
    timeout(Duration duration)
    Create a passivation strategy that passivates the entity after a given duration of inactivity.
  • Method Details

    • defaultTimeout

      static PassivationStrategy defaultTimeout()
      Create a passivation strategy that passivates the entity after the default duration (30 seconds) of inactivity.
      Returns:
      the passivation strategy
    • timeout

      static PassivationStrategy timeout(Duration duration)
      Create a passivation strategy that passivates the entity after a given duration of inactivity.
      Parameters:
      duration - of inactivity after which the passivation should occur.
      Returns:
      the passivation strategy