Class GameServerConnectFlow

java.lang.Object
app.l2nx.gs.adapter.core.connect.GameServerConnectFlow
All Implemented Interfaces:
HostConnectFlow<app.l2nx.gs.adapter.api.rest.ConnectResponse>

public final class GameServerConnectFlow extends Object implements HostConnectFlow<app.l2nx.gs.adapter.api.rest.ConnectResponse>
HostConnectFlow for gameserver host-type. POSTs to /api/tenants/gameservers/connect and deserializes the body into ConnectResponse. New gameserver adapter deployments hit this path; the platform serves /api/tenants/servers/connect as a dual-mode alias for older adapter versions that pre-date the rename.
  • Field Details

  • Constructor Details

    • GameServerConnectFlow

      public GameServerConnectFlow(AdapterConfig config)
  • Method Details

    • connect

      public TypedConnectOutcome<app.l2nx.gs.adapter.api.rest.ConnectResponse> connect()
      Description copied from interface: HostConnectFlow
      Execute one handshake attempt against the platform. The returned TypedConnectOutcome wraps either the parsed response or a transport / HTTP error — never throws into the caller.
      Specified by:
      connect in interface HostConnectFlow<app.l2nx.gs.adapter.api.rest.ConnectResponse>
    • connectPath

      public String connectPath()
      Description copied from interface: HostConnectFlow
      The path under platformUrl this flow POSTs to — exposed for test introspection and logging.
      Specified by:
      connectPath in interface HostConnectFlow<app.l2nx.gs.adapter.api.rest.ConnectResponse>
    • response

      public @Nullable app.l2nx.gs.adapter.api.rest.ConnectResponse response()
      Description copied from interface: HostConnectFlow
      Captured response from the last successful HostConnectFlow.connect(). Returns null before the first successful call.
      Specified by:
      response in interface HostConnectFlow<app.l2nx.gs.adapter.api.rest.ConnectResponse>
    • heartbeatTopic

      public @Nullable String heartbeatTopic()
      Description copied from interface: HostConnectFlow
      Heartbeat Kafka topic from the captured response.
      Specified by:
      heartbeatTopic in interface HostConnectFlow<app.l2nx.gs.adapter.api.rest.ConnectResponse>
    • topics

      public @Nullable app.l2nx.gs.adapter.api.rest.MessagingTopics topics()
      Description copied from interface: HostConnectFlow
      Messaging topic bundle (events + commands) from the captured response.
      Specified by:
      topics in interface HostConnectFlow<app.l2nx.gs.adapter.api.rest.ConnectResponse>
    • syncTopics

      public @Nullable app.l2nx.gs.adapter.api.rest.SyncTopics syncTopics()
      Description copied from interface: HostConnectFlow
      Sync-stream topic bundle (db / runtime / datapack). Always null for login-server host-type — LS deployments carry no sync streams.
      Specified by:
      syncTopics in interface HostConnectFlow<app.l2nx.gs.adapter.api.rest.ConnectResponse>
    • serverId

      public @Nullable UUID serverId()
      Specified by:
      serverId in interface HostConnectFlow<app.l2nx.gs.adapter.api.rest.ConnectResponse>
    • tenantId

      public @Nullable UUID tenantId()
      Specified by:
      tenantId in interface HostConnectFlow<app.l2nx.gs.adapter.api.rest.ConnectResponse>
    • tenantSlug

      public @Nullable String tenantSlug()
      Specified by:
      tenantSlug in interface HostConnectFlow<app.l2nx.gs.adapter.api.rest.ConnectResponse>
    • serverSlug

      public @Nullable String serverSlug()
      Specified by:
      serverSlug in interface HostConnectFlow<app.l2nx.gs.adapter.api.rest.ConnectResponse>
    • serverName

      public @Nullable String serverName()
      Specified by:
      serverName in interface HostConnectFlow<app.l2nx.gs.adapter.api.rest.ConnectResponse>
    • kafka

      public @Nullable app.l2nx.gs.adapter.api.rest.KafkaCredentials kafka()
      Description copied from interface: HostConnectFlow
      Kafka client bootstrap credentials from the captured response. Named kafka() rather than kafkaCredentials() to match the field accessor naming on the underlying response DTOs.
      Specified by:
      kafka in interface HostConnectFlow<app.l2nx.gs.adapter.api.rest.ConnectResponse>