Builder
public static class Builder
源码Source
io/agentscope/runtime/sandbox/map/RedisManagerConfig.java:60–95构建器,用于构建并配置目标实例。位于 io.agentscope.runtime.sandbox.map 包。核心成员包括 redisServer、redisPort、redisDb、redisUser、redisPassword、build。
A class in io.agentscope.runtime.sandbox.map that deploys, schedules and serves agents. Declared in io.agentscope.runtime.sandbox.map.
方法摘要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 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/map/RedisManagerConfig.java:67–70redisPort
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/map/RedisManagerConfig.java:72–75redisDb
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/map/RedisManagerConfig.java:77–80redisUser
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/map/RedisManagerConfig.java:82–85redisPassword
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/map/RedisManagerConfig.java:87–90build
public RedisManagerConfig build()
构建并返回最终实例。
Creates and returns an instance.
RedisManagerConfig返回RedisManagerConfig。Returns redis manager config.
源码Source
io/agentscope/runtime/sandbox/map/RedisManagerConfig.java:92–94