Package app.l2nx.gs.adapter.core.connect
Class LoginServerConnectFlow
java.lang.Object
app.l2nx.gs.adapter.core.connect.LoginServerConnectFlow
- All Implemented Interfaces:
HostConnectFlow<app.l2nx.gs.adapter.api.rest.LoginServerConnectResponse>
public final class LoginServerConnectFlow
extends Object
implements HostConnectFlow<app.l2nx.gs.adapter.api.rest.LoginServerConnectResponse>
HostConnectFlow for login-server host-type. POSTs to
/api/tenants/loginservers/connect and deserializes the body into
LoginServerConnectResponse. LS deployments carry no sync-stream
topic bundle (the response shape mirrors the gameserver one minus
syncTopics).-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionTypedConnectOutcome<app.l2nx.gs.adapter.api.rest.LoginServerConnectResponse>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.LoginServerConnectResponseresponse()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
-
LoginServerConnectFlow
-
-
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.LoginServerConnectResponse>
-
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.LoginServerConnectResponse>
-
response
public @Nullable app.l2nx.gs.adapter.api.rest.LoginServerConnectResponse 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.LoginServerConnectResponse>
-
heartbeatTopic
Description copied from interface:HostConnectFlowHeartbeat Kafka topic from the captured response.- Specified by:
heartbeatTopicin interfaceHostConnectFlow<app.l2nx.gs.adapter.api.rest.LoginServerConnectResponse>
-
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.LoginServerConnectResponse>
-
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.LoginServerConnectResponse>
-
serverId
- Specified by:
serverIdin interfaceHostConnectFlow<app.l2nx.gs.adapter.api.rest.LoginServerConnectResponse>
-
tenantId
- Specified by:
tenantIdin interfaceHostConnectFlow<app.l2nx.gs.adapter.api.rest.LoginServerConnectResponse>
-
tenantSlug
- Specified by:
tenantSlugin interfaceHostConnectFlow<app.l2nx.gs.adapter.api.rest.LoginServerConnectResponse>
-
serverSlug
- Specified by:
serverSlugin interfaceHostConnectFlow<app.l2nx.gs.adapter.api.rest.LoginServerConnectResponse>
-
serverName
- Specified by:
serverNamein interfaceHostConnectFlow<app.l2nx.gs.adapter.api.rest.LoginServerConnectResponse>
-
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.LoginServerConnectResponse>
-