-
public final class NameGovernor
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classNameGovernor.Companionpublic final classNameGovernor.DebugState
-
Constructor Summary
Constructors Constructor Description NameGovernor()
-
Method Summary
Modifier and Type Method Description final <ERROR CLASS>ingestHint(EventGovernanceHint hint)Ingest a freshly-bootstrapped hint. final BooleanshouldSend(String eventName)Decide whether a track()call should proceed.final DropReportdrainDropReport()Snapshot + reset the dropped-names counter. final NameGovernor.DebugStatedebugState()-
-
Method Detail
-
ingestHint
final <ERROR CLASS> ingestHint(EventGovernanceHint hint)
Ingest a freshly-bootstrapped hint. Call on every successful bootstrap. Passing null disables governance (fail-open — gateway remains truth).
-
shouldSend
final Boolean shouldSend(String eventName)
Decide whether a
track()call should proceed. Returns true = send to network (rate-limiter still runs after). Returns false = drop locally; caller should return early.
-
drainDropReport
final DropReport drainDropReport()
Snapshot + reset the dropped-names counter.
-
debugState
final NameGovernor.DebugState debugState()
-
-
-
-