Class TimeoutProperties

java.lang.Object
org.axonframework.extension.springboot.TimeoutProperties

@ConfigurationProperties(prefix="axon.timeout") public class TimeoutProperties extends Object
Configuration properties for time limits of processing transactions and handlers in Axon Framework.
Since:
4.11.0
Author:
Mitchell Herrijgers
  • Constructor Details

    • TimeoutProperties

      public TimeoutProperties()
  • Method Details

    • isEnabled

      public boolean isEnabled()
      Whether timeouts are enabled. Defaults to true. Setting this to false disabled all timeouts, even the ones set through the MessageHandlerTimeout annotations.
      Returns:
      whether timeouts are enabled
    • setEnabled

      public void setEnabled(boolean enabled)
      Sets whether timeouts are enabled.
    • getTransaction

      Timeout settings for transactions (UnitOfWork). Default to 30-second timeout, 10-second warning threshold and a warning interval of 1 second for all types of transactions.
      Returns:
      the timeout settings for transactions
    • setTransaction

      public void setTransaction(TimeoutProperties.TransactionTimeoutProperties properties)
      Sets the timeout settings for transactions.
      Parameters:
      properties - the timeout settings for transactions
    • getHandler

      Timeout settings for message handlers. Defaults to 30-second timeout, 10-second warning threshold and a warning interval of 1 second for all types of message handlers.
      Returns:
      the timeout settings for message handlers
    • setHandler

      public void setHandler(TimeoutProperties.MessageHandlerTimeoutProperties properties)
      Sets the timeout settings for message handlers.
      Parameters:
      properties - the timeout settings for message handlers