Interface CommandLoadFactorProvider
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Provides the load factor value of the client for the specific command. This information is used from AxonServer in
order to balance the load among client instances.
- Since:
- 4.3
- Author:
- Sara Pellegrini
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe default value for command load factor: 100. -
Method Summary
-
Field Details
-
DEFAULT_VALUE
static final int DEFAULT_VALUEThe default value for command load factor: 100. It represents the fixed value of load factor sent to Axon Server for any command's subscription if no specific implementation of CommandLoadFactorProvider is configured.- See Also:
-
-
Method Details
-
getFor
Returns the load factor value for the specific command- Parameters:
command- the command name- Returns:
- the load factor value for the specific command
-