Interface PassivationStrategy


  • public interface PassivationStrategy
    A passivation strategy.
    • Method Summary

      Static Methods 
      Modifier and Type Method Description
      static PassivationStrategy defaultTimeout()
      Create a passivation strategy that passivates the entity after the default duration (30 seconds) of inactivity.
      static PassivationStrategy timeout​(java.time.Duration duration)
      Create a passivation strategy that passivates the entity after a given duration of inactivity.
    • Method Detail

      • 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​(java.time.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