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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThe JGroups specific configuration for the Distributed Command Bus.static class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the JGroups configuration to use (if JGroups is on the classpath).intReturns the load factor for this instance of the Distributed Command Bus (default 100).Returns the Spring Cloud configuration to use (if Spring Cloud is on the classpath).booleanIndicates whether the (auto-configuration) of the Distributed Command Bus is enabled.voidsetEnabled(boolean enabled) Enables (iftrue) or disables (iffalse, default) the auto-configuration of a Distributed Command Bus instance in the application context.voidSets the JGroups configuration to use (if JGroups is on the classpath).voidsetLoadFactor(int loadFactor) Sets the load factor for this instance of the Distributed Command Bus (default 100).voidSets the Spring Cloud configuration to use (if Spring Cloud is on the classpath).
-
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 (iftrue) or disables (iffalse, 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
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
Sets the Spring Cloud configuration to use (if Spring Cloud is on the classpath).- Parameters:
springCloud- the Spring Cloud configuration to use.
-