AS AgentScopeAPI 手册 / API Reference

Builder

public static class Builder
源码Source io/agentscope/runtime/sandbox/manager/model/container/RedisManagerConfig.java:72–119

构建器,用于构建并配置目标实例。位于 io.agentscope.runtime.sandbox.manager.model.container 包。核心成员包括 redisServer、redisPort、redisDb、redisUser、redisPassword、redisPortKey。

A class in io.agentscope.runtime.sandbox.manager.model.container that talks to model services and returns generated or embedded output. Declared in io.agentscope.runtime.sandbox.manager.model.container.

方法摘要Method Summary

方法Method说明Description
public Builder redisServer(String redisServer)
设置该配置项。
Performs the redis server operation.
public Builder redisPort(Integer redisPort)
设置该配置项。
Performs the redis port operation.
public Builder redisDb(Integer redisDb)
设置该配置项。
Performs the redis db operation.
public Builder redisUser(String redisUser)
设置该配置项。
Performs the redis user operation.
public Builder redisPassword(String redisPassword)
设置该配置项。
Performs the redis password operation.
public Builder redisPortKey(String redisPortKey)
设置该配置项。
Performs the redis port key operation.
public Builder redisContainerPoolKey(String redisContainerPoolKey)
设置该配置项。
Performs the redis container pool key operation.
public RedisManagerConfig build()
构建并返回最终实例。
Creates and returns an instance.

方法详情Method Detail

redisServer

public Builder redisServer(String redisServer)

设置该配置项。

Performs the redis server operation.

参数Parameters
名称Name类型Type说明Description
redisServerStringRedis 服务端(类型 `String`)。The redis server.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/runtime/sandbox/manager/model/container/RedisManagerConfig.java:81–84

redisPort

public Builder redisPort(Integer redisPort)

设置该配置项。

Performs the redis port operation.

参数Parameters
名称Name类型Type说明Description
redisPortIntegerRedis Port(类型 `Integer`)。The redis port.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/runtime/sandbox/manager/model/container/RedisManagerConfig.java:86–89

redisDb

public Builder redisDb(Integer redisDb)

设置该配置项。

Performs the redis db operation.

参数Parameters
名称Name类型Type说明Description
redisDbIntegerRedis 数据库(类型 `Integer`)。The redis db.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/runtime/sandbox/manager/model/container/RedisManagerConfig.java:91–94

redisUser

public Builder redisUser(String redisUser)

设置该配置项。

Performs the redis user operation.

参数Parameters
名称Name类型Type说明Description
redisUserStringRedis 用户(类型 `String`)。The redis user.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/runtime/sandbox/manager/model/container/RedisManagerConfig.java:96–99

redisPassword

public Builder redisPassword(String redisPassword)

设置该配置项。

Performs the redis password operation.

参数Parameters
名称Name类型Type说明Description
redisPasswordStringRedis 密码(类型 `String`)。The redis password.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/runtime/sandbox/manager/model/container/RedisManagerConfig.java:101–104

redisPortKey

public Builder redisPortKey(String redisPortKey)

设置该配置项。

Performs the redis port key operation.

参数Parameters
名称Name类型Type说明Description
redisPortKeyStringRedis Port 键(类型 `String`)。The redis port key.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/runtime/sandbox/manager/model/container/RedisManagerConfig.java:106–109

redisContainerPoolKey

public Builder redisContainerPoolKey(String redisContainerPoolKey)

设置该配置项。

Performs the redis container pool key operation.

参数Parameters
名称Name类型Type说明Description
redisContainerPoolKeyStringRedis 容器连接池键(类型 `String`)。The redis container pool key.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/runtime/sandbox/manager/model/container/RedisManagerConfig.java:111–114

build

public RedisManagerConfig build()

构建并返回最终实例。

Creates and returns an instance.

返回Returns RedisManagerConfig
返回RedisManagerConfig。Returns redis manager config.
源码Source io/agentscope/runtime/sandbox/manager/model/container/RedisManagerConfig.java:116–118
基于官方固定版本源码静态生成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.