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 |
|---|---|---|
redisServer | String | Redis 服务端(类型 `String`)。The redis server. |
Builder返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source
io/agentscope/runtime/sandbox/manager/model/container/RedisManagerConfig.java:81–84redisPort
public Builder redisPort(Integer redisPort)
设置该配置项。
Performs the redis port operation.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
redisPort | Integer | Redis Port(类型 `Integer`)。The redis port. |
Builder返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source
io/agentscope/runtime/sandbox/manager/model/container/RedisManagerConfig.java:86–89redisDb
public Builder redisDb(Integer redisDb)
设置该配置项。
Performs the redis db operation.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
redisDb | Integer | Redis 数据库(类型 `Integer`)。The redis db. |
Builder返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source
io/agentscope/runtime/sandbox/manager/model/container/RedisManagerConfig.java:91–94redisUser
public Builder redisUser(String redisUser)
设置该配置项。
Performs the redis user operation.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
redisUser | String | Redis 用户(类型 `String`)。The redis user. |
Builder返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source
io/agentscope/runtime/sandbox/manager/model/container/RedisManagerConfig.java:96–99redisPassword
public Builder redisPassword(String redisPassword)
设置该配置项。
Performs the redis password operation.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
redisPassword | String | Redis 密码(类型 `String`)。The redis password. |
Builder返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source
io/agentscope/runtime/sandbox/manager/model/container/RedisManagerConfig.java:101–104redisPortKey
public Builder redisPortKey(String redisPortKey)
设置该配置项。
Performs the redis port key operation.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
redisPortKey | String | Redis Port 键(类型 `String`)。The redis port key. |
Builder返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source
io/agentscope/runtime/sandbox/manager/model/container/RedisManagerConfig.java:106–109redisContainerPoolKey
public Builder redisContainerPoolKey(String redisContainerPoolKey)
设置该配置项。
Performs the redis container pool key operation.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
redisContainerPoolKey | String | Redis 容器连接池键(类型 `String`)。The redis container pool key. |
Builder返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source
io/agentscope/runtime/sandbox/manager/model/container/RedisManagerConfig.java:111–114build
public RedisManagerConfig build()
构建并返回最终实例。
Creates and returns an instance.
RedisManagerConfig返回RedisManagerConfig。Returns redis manager config.
源码Source
io/agentscope/runtime/sandbox/manager/model/container/RedisManagerConfig.java:116–118