Class AdapterConfig

java.lang.Object
app.l2nx.gs.adapter.core.config.AdapterConfig

public final class AdapterConfig extends Object
Immutable holder for adapter configuration resolved at startup. Built by ConfigResolver.resolve(); not constructed directly.
  • Field Details

    • DEFAULT_IO_WORKERS_MIN

      public static final int DEFAULT_IO_WORKERS_MIN
      Floor for the IO worker pool — keeps modules/handlers usable when host JVM reports a single available processor.
      See Also:
    • DEFAULT_HOST_TYPE

      public static final String DEFAULT_HOST_TYPE
      Default host-type when no l2nx.host-type is configured — preserves back-compat for pre-host-type adapter deployments.
      See Also:
  • Method Details

    • defaultIoWorkers

      public static int defaultIoWorkers()
    • getServerKey

      public String getServerKey()
    • getPlatformUrl

      public String getPlatformUrl()
    • getAdapterVersion

      public String getAdapterVersion()
    • isEnabled

      public boolean isEnabled()
    • getIoWorkers

      public int getIoWorkers()
    • getKafkaProducerOverrides

      public Map<String,Object> getKafkaProducerOverrides()
    • getEvents

      public EventsConfig getEvents()
    • getCommands

      public CommandsConfig getCommands()
    • getHostType

      public String getHostType()
      Adapter host-type — gs (game server) or ls (login server). Selects the platform connect endpoint and the expected server-key property name.