AS AgentScopeAPI 手册 / API Reference

GatewayConnectionConfig

public final class GatewayConnectionConfig implements SandboxConnectionConfig
源码Source io/agentscope/extensions/sandbox/kubernetes/client/config/GatewayConnectionConfig.java:21–70

网关连接配置,保存相关配置项。位于 io.agentscope.extensions.sandbox.kubernetes.client.config 包,实现 SandboxConnectionConfig。核心成员包括 gatewayName、gatewayNamespace、gatewayScheme、gatewayReadyTimeoutSeconds、serverPort、GatewayConnectionConfig。

Configuration for connecting via the Kubernetes Gateway API.

构造器摘要Constructor Summary

构造器Constructor说明Description
public GatewayConnectionConfig(String gatewayName)
初始化 `GatewayConnectionConfig` 实例。
Creates a new instance.
public GatewayConnectionConfig(String gatewayName, String gatewayNamespace, String gatewayScheme, long gatewayReadyTimeoutSeconds, int serverPort)
初始化 `GatewayConnectionConfig` 实例。
Creates a new instance.

方法摘要Method Summary

方法Method说明Description
public String gatewayName()
返回网关名称。
Returns the gateway name.
public String gatewayNamespace()
返回网关命名空间。
Returns the gateway namespace.
public String gatewayScheme()
返回 `gatewayScheme` 结果。
Returns the gateway scheme.
public long gatewayReadyTimeoutSeconds()
返回网关就绪超时秒。
Returns the gateway ready timeout seconds.
public int serverPort()
返回 `serverPort` 结果。
Returns the server port.

构造器详情Constructor Detail

GatewayConnectionConfig

public GatewayConnectionConfig(String gatewayName)

初始化 GatewayConnectionConfig 实例。

Creates a new instance.

参数Parameters
名称Name类型Type说明Description
gatewayNameString网关名称(类型 `String`)。The gateway name.
源码Source io/agentscope/extensions/sandbox/kubernetes/client/config/GatewayConnectionConfig.java:29–31

GatewayConnectionConfig

public GatewayConnectionConfig(String gatewayName, String gatewayNamespace, String gatewayScheme, long gatewayReadyTimeoutSeconds, int serverPort)

初始化 GatewayConnectionConfig 实例。

Creates a new instance.

参数Parameters
名称Name类型Type说明Description
gatewayNameString网关名称(类型 `String`)。The gateway name.
gatewayNamespaceString网关命名空间(类型 `String`)。The gateway namespace.
gatewaySchemeString网关 Scheme(类型 `String`)。The gateway scheme.
gatewayReadyTimeoutSecondslong网关就绪超时秒(类型 `long`)。The gateway ready timeout seconds.
serverPortint服务端 Port(类型 `int`)。The server port.
源码Source io/agentscope/extensions/sandbox/kubernetes/client/config/GatewayConnectionConfig.java:33–48

方法详情Method Detail

gatewayName

public String gatewayName()

返回网关名称。

Returns the gateway name.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/extensions/sandbox/kubernetes/client/config/GatewayConnectionConfig.java:50–52

gatewayNamespace

public String gatewayNamespace()

返回网关命名空间。

Returns the gateway namespace.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/extensions/sandbox/kubernetes/client/config/GatewayConnectionConfig.java:54–56

gatewayScheme

public String gatewayScheme()

返回 gatewayScheme 结果。

Returns the gateway scheme.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/extensions/sandbox/kubernetes/client/config/GatewayConnectionConfig.java:58–60

gatewayReadyTimeoutSeconds

public long gatewayReadyTimeoutSeconds()

返回网关就绪超时秒。

Returns the gateway ready timeout seconds.

返回Returns long
返回数值结果。Returns a numeric result.
源码Source io/agentscope/extensions/sandbox/kubernetes/client/config/GatewayConnectionConfig.java:62–64

serverPort

public int serverPort()

返回 serverPort 结果。

Returns the server port.

返回Returns int
返回数值结果。Returns a numeric result.
源码Source io/agentscope/extensions/sandbox/kubernetes/client/config/GatewayConnectionConfig.java:66–69
基于官方固定版本源码静态生成Generated from pinned official sources · Python 2.0.11 · Java 2.0.4
签名与文档为静态抽取;如有疑问请以源码为准。Signatures and docs are extracted statically; verify against the source when in doubt.