Package app.l2nx.gs.adapter.core.connect
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionTypedConnectOutcome<app.l2nx.gs.adapter.api.rest.ConnectResponse>connect()Execute one handshake attempt against the platform.The path underplatformUrlthis flow POSTs to — exposed for test introspection and logging.@Nullable StringHeartbeat Kafka topic from the captured response.@Nullable app.l2nx.gs.adapter.api.rest.KafkaCredentialskafka()Kafka client bootstrap credentials from the captured response.@Nullable app.l2nx.gs.adapter.api.rest.ConnectResponseresponse()Captured response from the last successfulHostConnectFlow.connect().@Nullable UUIDserverId()@Nullable String@Nullable String@Nullable app.l2nx.gs.adapter.api.rest.SyncTopicsSync-stream topic bundle (db / runtime / datapack).@Nullable UUIDtenantId()@Nullable String@Nullable app.l2nx.gs.adapter.api.rest.MessagingTopicstopics()Messaging topic bundle (events + commands) from the captured response.
-
Field Details
-
CONNECT_PATH
- See Also:
-
-
Constructor Details
-
GameServerConnectFlow
-
-
Method Details
-
connect
Description copied from interface:HostConnectFlowExecute one handshake attempt against the platform. The returnedTypedConnectOutcomewraps either the parsed response or a transport / HTTP error — never throws into the caller.- Specified by:
connectin interfaceHostConnectFlow<app.l2nx.gs.adapter.api.rest.ConnectResponse>
-
connectPath
Description copied from interface:HostConnectFlowThe path underplatformUrlthis flow POSTs to — exposed for test introspection and logging.- Specified by:
connectPathin interfaceHostConnectFlow<app.l2nx.gs.adapter.api.rest.ConnectResponse>
-
response
public @Nullable app.l2nx.gs.adapter.api.rest.ConnectResponse response()Description copied from interface:HostConnectFlowCaptured response from the last successfulHostConnectFlow.connect(). Returnsnullbefore the first successful call.- Specified by:
responsein interfaceHostConnectFlow<app.l2nx.gs.adapter.api.rest.ConnectResponse>
-
heartbeatTopic
Description copied from interface:HostConnectFlowHeartbeat Kafka topic from the captured response.- Specified by:
heartbeatTopicin interfaceHostConnectFlow<app.l2nx.gs.adapter.api.rest.ConnectResponse>
-
topics
public @Nullable app.l2nx.gs.adapter.api.rest.MessagingTopics topics()Description copied from interface:HostConnectFlowMessaging topic bundle (events + commands) from the captured response.- Specified by:
topicsin interfaceHostConnectFlow<app.l2nx.gs.adapter.api.rest.ConnectResponse>
-
syncTopics
public @Nullable app.l2nx.gs.adapter.api.rest.SyncTopics syncTopics()Description copied from interface:HostConnectFlowSync-stream topic bundle (db / runtime / datapack). Alwaysnullfor login-server host-type — LS deployments carry no sync streams.- Specified by:
syncTopicsin interfaceHostConnectFlow<app.l2nx.gs.adapter.api.rest.ConnectResponse>
-
serverId
- Specified by:
serverIdin interfaceHostConnectFlow<app.l2nx.gs.adapter.api.rest.ConnectResponse>
-
tenantId
- Specified by:
tenantIdin interfaceHostConnectFlow<app.l2nx.gs.adapter.api.rest.ConnectResponse>
-
tenantSlug
- Specified by:
tenantSlugin interfaceHostConnectFlow<app.l2nx.gs.adapter.api.rest.ConnectResponse>
-
serverSlug
- Specified by:
serverSlugin interfaceHostConnectFlow<app.l2nx.gs.adapter.api.rest.ConnectResponse>
-
serverName
- Specified by:
serverNamein interfaceHostConnectFlow<app.l2nx.gs.adapter.api.rest.ConnectResponse>
-
kafka
public @Nullable app.l2nx.gs.adapter.api.rest.KafkaCredentials kafka()Description copied from interface:HostConnectFlowKafka client bootstrap credentials from the captured response. Namedkafka()rather thankafkaCredentials()to match the field accessor naming on the underlying response DTOs.- Specified by:
kafkain interfaceHostConnectFlow<app.l2nx.gs.adapter.api.rest.ConnectResponse>
-