Class DistributedCommandBusProperties

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

@ConfigurationProperties(prefix="axon.distributed") public class DistributedCommandBusProperties extends Object
Defines the properties for the Distributed Command Bus, when automatically configured in the Application Context.
  • Constructor Details

    • DistributedCommandBusProperties

      public DistributedCommandBusProperties()
  • Method Details

    • isEnabled

      public boolean isEnabled()
      Indicates whether the (auto-configuration) of the Distributed Command Bus is enabled.
      Returns:
      whether the (auto-configuration) of the Distributed Command Bus is enabled.
    • setEnabled

      public void setEnabled(boolean enabled)
      Enables (if true) or disables (if false, default) the auto-configuration of a Distributed Command Bus instance in the application context.
      Parameters:
      enabled - whether to enable Distributed Command Bus configuration.
    • getLoadFactor

      public int getLoadFactor()
      Returns the load factor for this instance of the Distributed Command Bus (default 100).
      Returns:
      the load factor for this instance of the Distributed Command Bus.
    • setLoadFactor

      public void setLoadFactor(int loadFactor)
      Sets the load factor for this instance of the Distributed Command Bus (default 100).
      Parameters:
      loadFactor - the load factor for this instance of the Distributed Command Bus.
    • getJgroups

      Returns the JGroups configuration to use (if JGroups is on the classpath).
      Returns:
      the JGroups configuration to use.
    • setJgroups

      public void setJgroups(DistributedCommandBusProperties.JGroupsProperties jgroups)
      Sets the JGroups configuration to use (if JGroups is on the classpath).
      Parameters:
      jgroups - the JGroups configuration to use.
    • getSpringCloud

      Returns the Spring Cloud configuration to use (if Spring Cloud is on the classpath).
      Returns:
      the Spring Cloud configuration to use.
    • setSpringCloud

      public void setSpringCloud(DistributedCommandBusProperties.SpringCloudProperties springCloud)
      Sets the Spring Cloud configuration to use (if Spring Cloud is on the classpath).
      Parameters:
      springCloud - the Spring Cloud configuration to use.