Enum Class RouterStrategy

java.lang.Object
java.lang.Enum<RouterStrategy>
org.distributeme.core.routing.RouterStrategy
All Implemented Interfaces:
Serializable, Comparable<RouterStrategy>, Constable

public enum RouterStrategy extends Enum<RouterStrategy>
Router Strategy. Refactored from AbstractRounterWithFailoverToNextNode.
Since:
13.03.15 00:59
Version:
$Id: $Id
Author:
lrosenberg
  • Enum Constant Details

    • MOD_ROUTER

      public static final RouterStrategy MOD_ROUTER
      Router based on Mod policy/strategy.
    • RR_ROUTER

      public static final RouterStrategy RR_ROUTER
      Router based on RoundRobin policy/strategy.
  • Method Details

    • values

      public static RouterStrategy[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static RouterStrategy valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null