@ConfigurationProperties(prefix="axon.distributed") public class DistributedCommandBusProperties extends Object
Modifier and Type | Class and Description |
---|---|
static class |
DistributedCommandBusProperties.JGroupsProperties
The JGroups specific configuration for the Distributed Command Bus.
|
static class |
DistributedCommandBusProperties.SpringCloudProperties |
Constructor and Description |
---|
DistributedCommandBusProperties() |
Modifier and Type | Method and Description |
---|---|
DistributedCommandBusProperties.JGroupsProperties |
getJgroups()
Returns the JGroups configuration to use (if JGroups is on the classpath).
|
int |
getLoadFactor()
Returns the load factor for this instance of the Distributed Command Bus (default 100).
|
DistributedCommandBusProperties.SpringCloudProperties |
getSpringCloud()
Returns the Spring Cloud configuration to use (if Spring Cloud is on the classpath).
|
boolean |
isEnabled()
Indicates whether the (auto-configuration) of the Distributed Command Bus is enabled.
|
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. |
void |
setJgroups(DistributedCommandBusProperties.JGroupsProperties jgroups)
Sets the JGroups configuration to use (if JGroups is on the classpath).
|
void |
setLoadFactor(int loadFactor)
Sets the load factor for this instance of the Distributed Command Bus (default 100).
|
void |
setSpringCloud(DistributedCommandBusProperties.SpringCloudProperties springCloud)
Sets the Spring Cloud configuration to use (if Spring Cloud is on the classpath).
|
public boolean isEnabled()
public void setEnabled(boolean enabled)
true
) or disables (if false
, default) the auto-configuration of a Distributed
Command Bus instance in the application context.enabled
- whether to enable Distributed Command Bus configuration.public int getLoadFactor()
public void setLoadFactor(int loadFactor)
loadFactor
- the load factor for this instance of the Distributed Command Bus.public DistributedCommandBusProperties.JGroupsProperties getJgroups()
public void setJgroups(DistributedCommandBusProperties.JGroupsProperties jgroups)
jgroups
- the JGroups configuration to use.public DistributedCommandBusProperties.SpringCloudProperties getSpringCloud()
public void setSpringCloud(DistributedCommandBusProperties.SpringCloudProperties springCloud)
springCloud
- the Spring Cloud configuration to use.Copyright © 2010–2017. All rights reserved.