Enum Class Route.Default
- All Implemented Interfaces:
Route, Serializable, Comparable<Route.Default>, Constable
- Enclosing interface:
Route
当节点的所有路由路径都无法匹配其发送的数据时(包括当节点根本没有发送任何数据时),系统会使用“回退路径”(fallback path)进行处理。一个节点可以配置多个这样的回退路径,这些路径会同时被触发;但是,某个默认的回退路径不能与某个具体的路由路径共享相同的物理传输路径(即不能使用相同的物理网络链路)。
-
嵌套类概述
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E>Nested classes/interfaces inherited from interface Route
Route.Default, Route.Flag, Route.Num, Route.TagModifier and TypeInterfaceDescriptionstatic enum当节点的其他所有路由路径都无法匹配该节点发送的数据时(包括该节点根本没有发送任何数据的情况),系统会使用“备用路径”(即 fallback path)来进行数据传输。static final record一条由布尔值标识的路由,用于表示双向分支(即数据可以在两个方向上传输)。static final record由一个整数标识的路由。static final record一条路由通过字符串来标识,这是最常见的情况。 -
枚举常量概述
Enum Constants -
字段摘要
Fields inherited from interface Route
DEFAULT_ROUTE_SENTINELModifier and TypeFieldDescriptionstatic final String代表……的字符串Route.Default“On the wire” 是一个英语短语,字面意思是“在线上”或“正在传输中”,通常用来描述某项信息或数据正在被发送或传输的过程中。例如: - “The order is on the wire to the supplier.”(订单正在被发送给供应商。) 这个短语强调信息传输的实时性或紧迫性。 -
方法概述
Modifier and TypeMethodDescriptionstatic Route.Default返回该类中具有指定名称的枚举常量。static Route.Default[]values()返回一个数组,其中包含该枚举类中的所有常量,并按照它们被声明的顺序排列。
-
枚举常量详细信息
-
INSTANCE
-
-
方法详细信息(Method Details)
-
values
返回一个数组,其中包含该枚举类中的所有常量,并按照它们被声明的顺序排列。- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
返回该类中具有指定名称的枚举常量。 该字符串必须与指定的名称完全匹配。 确切地;准确地 这是一个用于在该类中声明枚举常量的标识符。(不允许使用多余的空白字符。)- 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 nameNullPointerException- if the argument is null
-