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.

@FunctionalInterface public interface CommandLoadFactorProvider
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

    Fields
    Modifier and Type
    Field
    Description
    static final int
    The default value for command load factor: 100.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    getFor(String command)
    Returns the load factor value for the specific command
  • Field Details

    • DEFAULT_VALUE

      static final int DEFAULT_VALUE
      The 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

      int getFor(String command)
      Returns the load factor value for the specific command
      Parameters:
      command - the command name
      Returns:
      the load factor value for the specific command