Skip to content

@tripo3d/lens / index / Priority

Type Alias: Priority ​

ts
type Priority = "P0" | "P1" | "P2";

Defined in: src/transport/queue-priority.ts:7

事件优先级(封闭映射,仅作条目属性——决定背压淘汰顺序、持久化排序与 P0 行为,队列不分区):

  • P0 = identity / landing:入队即 flush + 送达回执,背压永不淘汰
  • P1 = 行为类事件:批量,fire-and-forget
  • P2 = error / performance 及表外未知类型:批量,背压最先淘汰

基于 MIT 协议发布(内部使用)