Skip to content

Commit 2876333

Browse files
Add transaction timeout option setter (#182)
## What is the goal of this PR? Add transaction timeouts to the console options available. This allows users to manipulate the transaction timeout added in typedb/typedb-driver#364. ## What are the changes implemented in this PR? * add extra option for transaction timeout * bump version to 2.6.1 to prepare for patch release
1 parent c2b40c5 commit 2876333

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.6.0
1+
2.6.1

command/REPLCommand.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -494,6 +494,7 @@ static class Core {
494494
Option.core("batch-size", Option.Arg.INTEGER, "Set RPC answer batch size", (opt, arg) -> opt.prefetchSize((Integer) arg)),
495495
Option.core("prefetch", Option.Arg.BOOLEAN, "Enable or disable RPC answer prefetch ", (opt, arg) -> opt.prefetch((Boolean) arg)),
496496
Option.core("session-idle-timeout", Option.Arg.INTEGER, "Kill idle session timeout (ms)", (opt, arg) -> opt.sessionIdleTimeoutMillis((Integer) arg)),
497+
Option.core("transaction-timeout", Option.Arg.INTEGER, "Kill transaction timeout (ms)", (opt, arg) -> opt.transactionTimeoutMillis((Integer) arg)),
497498
Option.core("schema-lock-acquire-timeout", Option.Arg.INTEGER, "Acquire exclusive schema session timeout (ms)", (opt, arg) -> opt.schemaLockAcquireTimeoutMillis((Integer) arg))
498499
);
499500

0 commit comments

Comments
 (0)