Class EventsConfig

java.lang.Object
app.l2nx.gs.adapter.core.events.EventsConfig

public final class EventsConfig extends Object
Operator-tunable knobs for the built-in events publisher. Resolved by ConfigResolver.resolveEventsConfig() via the file-first source chain (l2nx.properties → JVM system property → built-in default).

Drop policy default is EventsPublisher.DropPolicy.NEWEST. EventsPublisher.DropPolicy.OLDEST is still supported but exhibits eviction contention under multi-threaded producers — head-poll and newcomer- offer are not atomic, so a hot path can over-count droppedTotal when threads race on a full queue. NEWEST drops the incoming envelope atomically via queue.offer() returning false, no eviction race.

  • Field Details

  • Constructor Details

  • Method Details

    • defaults

      public static EventsConfig defaults()
    • getQueueCapacity

      public int getQueueCapacity()
    • getDropPolicy

      public EventsPublisher.DropPolicy getDropPolicy()
    • getShutdownDrainMs

      public long getShutdownDrainMs()