AS AgentScopeAPI 手册 / API Reference

Builder

public static final class Builder
源码Source io/agentscope/extensions/jdbc/sandbox/JdbcSandboxExecutionGuard.java:79–114

JdbcSandboxExecutionGuard的构建器。位于 io.agentscope.extensions.jdbc.sandbox 包。核心成员包括 keyPrefix、lockTimeout、build。

Builder for JdbcSandboxExecutionGuard.

方法摘要Method Summary

方法Method说明Description
public Builder keyPrefix(String keyPrefix)
设置该配置项。
Sets a custom key prefix for the lock name.
public Builder lockTimeout(Duration timeout)
设置锁超时时长。
Sets the lock timeout duration.
public JdbcSandboxExecutionGuard build()
构建`JdbcSandboxExecutionGuard`。
Builds the `JdbcSandboxExecutionGuard`.

方法详情Method Detail

keyPrefix

public Builder keyPrefix(String keyPrefix)

设置该配置项。

Sets a custom key prefix for the lock name.

参数Parameters
名称Name类型Type说明Description
keyPrefixString键 Prefix(类型 `String`)。The key prefix.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/extensions/jdbc/sandbox/JdbcSandboxExecutionGuard.java:92–98

lockTimeout

public Builder lockTimeout(Duration timeout)

设置锁超时时长。

Sets the lock timeout duration.

参数Parameters
名称Name类型Type说明Description
timeoutDuration超时时间(类型 `Duration`)。The timeout.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/extensions/jdbc/sandbox/JdbcSandboxExecutionGuard.java:101–108

build

public JdbcSandboxExecutionGuard build()

构建JdbcSandboxExecutionGuard。

Builds the JdbcSandboxExecutionGuard.

返回Returns JdbcSandboxExecutionGuard
返回JdbcSandboxExecutionGuard。Returns jdbc sandbox execution guard.
源码Source io/agentscope/extensions/jdbc/sandbox/JdbcSandboxExecutionGuard.java:111–113
基于官方固定版本源码静态生成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.