Package kalix.javasdk
Interface PassivationStrategy
public interface PassivationStrategy
A passivation strategy.
-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic PassivationStrategyCreate a passivation strategy that passivates the entity after the default duration (30 seconds) of inactivity.static PassivationStrategyCreate a passivation strategy that passivates the entity after a given duration of inactivity.
-
Method Details
-
defaultTimeout
Create a passivation strategy that passivates the entity after the default duration (30 seconds) of inactivity.- Returns:
- the passivation strategy
-
timeout
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
-