Class CellConstants
契约常量表(总体设计 §8 全表入码——每条带理由,改动即 ADR)。
public static class CellConstants
- Inheritance
-
CellConstants
- Inherited Members
Fields
ChunkPayloadLength
分块流发送侧块尺寸 256KB(§3.3 分块流式——LOH 线以下;解码器不感知, MaxFrameLength 仍是帧级硬顶。内存有界与 body 大小无关——大体载荷走分块)。
public const int ChunkPayloadLength = 262144
Field Value
EndpointEnvironmentVariable
端点自报键(握手前 stdout 唯一合法输出;载体限定描述符——公开面无裸 host:port,D9/§8)。
public const string EndpointEnvironmentVariable = "CELL_ENDPOINT"
Field Value
FramePrefixLength
分帧前缀长度(§3.1:[长度 4B 大端][帧体]——大端是线材铁律)。
public const int FramePrefixLength = 4
Field Value
HandshakeStepTimeout
握手各步超时 5s(装载期与子进程退出竞速;§8 预期值,随 C3 实测确认)。
public static readonly TimeSpan HandshakeStepTimeout
Field Value
HeartbeatMissLimit
失联判定=3 缺 × 心跳间隔(快于调用超时,慢于瞬时抖动;§8)。
public const int HeartbeatMissLimit = 3
Field Value
MaxFrameLength
帧长上限 4MB(防御上限;超限=协议错误事件非静默丢,§3.4/§8)。
public const int MaxFrameLength = 4194304
Field Value
NotifyQueueBudgetBytes
通知队列载荷预算 1MB(双向通知设计稿 §2.2 双限之二——队列内有效载荷字节总量触顶即丢最旧; 单条超预算的通知本身不可驻队=直接丢弃+计数——v1 使用建议 ≤64KB,设计稿 §8 默认 #1/#3)。
public const int NotifyQueueBudgetBytes = 1048576
Field Value
NotifyQueueDepth
通知队列深度上限 256 条(双向通知设计稿 §2.2 双限之一——条数/字节任一触顶即丢最旧; v1 编译期常量不可配,设计稿 §8 默认 #1,改动即 ADR)。
public const int NotifyQueueDepth = 256
Field Value
OrphanPollInterval
孤儿轮询间隔 1s(父死自杀——时延与空转的折中;§8 预期值,随 C3 实测确认)。
public static readonly TimeSpan OrphanPollInterval
Field Value
StderrTailLines
stderr 取证尾行 60 行(常驻监督器——容器是黑盒,stderr 是它的窗口;§8)。
public const int StderrTailLines = 60
Field Value
TelemetryQueueCapacity
telemetry 队列上限(有界丢最旧不阻塞调用路径;§8 实现期定值——C305 落地时复核回填)。
public const int TelemetryQueueCapacity = 1024