Package app.l2nx.gs.adapter.core.config
Class AdapterConfig
java.lang.Object
app.l2nx.gs.adapter.core.config.AdapterConfig
Immutable holder for adapter configuration resolved at startup.
Built by
ConfigResolver.resolve(); not constructed directly.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDefault host-type when nol2nx.host-typeis configured — preserves back-compat for pre-host-type adapter deployments.static final intFloor for the IO worker pool — keeps modules/handlers usable when host JVM reports a single available processor. -
Method Summary
Modifier and TypeMethodDescriptionstatic intAdapter host-type —gs(game server) orls(login server).intboolean
-
Field Details
-
DEFAULT_IO_WORKERS_MIN
public static final int DEFAULT_IO_WORKERS_MINFloor for the IO worker pool — keeps modules/handlers usable when host JVM reports a single available processor.- See Also:
-
DEFAULT_HOST_TYPE
Default host-type when nol2nx.host-typeis configured — preserves back-compat for pre-host-type adapter deployments.- See Also:
-
-
Method Details
-
defaultIoWorkers
public static int defaultIoWorkers() -
getServerKey
-
getPlatformUrl
-
getAdapterVersion
-
isEnabled
public boolean isEnabled() -
getIoWorkers
public int getIoWorkers() -
getKafkaProducerOverrides
-
getEvents
-
getCommands
-
getHostType
Adapter host-type —gs(game server) orls(login server). Selects the platform connect endpoint and the expected server-key property name.
-