Skip to content

Commit 0192576

Browse files
authored
Stabilize Worker options to enable virtual threads (#2947)
1 parent c0c9132 commit 0192576

2 files changed

Lines changed: 0 additions & 11 deletions

File tree

temporal-sdk/src/main/java/io/temporal/worker/WorkerFactoryOptions.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,6 @@ public Builder setEnableLoggingInReplay(boolean enableLoggingInReplay) {
136136
*
137137
* <p>Default is false
138138
*/
139-
@Experimental
140139
public Builder setUsingVirtualWorkflowThreads(boolean usingVirtualWorkflowThreads) {
141140
this.usingVirtualWorkflowThreads = usingVirtualWorkflowThreads;
142141
return this;
@@ -307,7 +306,6 @@ public boolean isEnableLoggingInReplay() {
307306
return enableLoggingInReplay;
308307
}
309308

310-
@Experimental
311309
public boolean isUsingVirtualWorkflowThreads() {
312310
return usingVirtualWorkflowThreads;
313311
}

temporal-sdk/src/main/java/io/temporal/worker/WorkerOptions.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,6 @@ public Builder setWorkerTuner(WorkerTuner workerTuner) {
437437
* supported for JDK >= 21. Individual options for different types of workers can be set using
438438
* the respective methods.
439439
*/
440-
@Experimental
441440
public Builder setUsingVirtualThreads(boolean enable) {
442441
this.usingVirtualThreadsOnWorkflowWorker = enable;
443442
this.usingVirtualThreadsOnLocalActivityWorker = enable;
@@ -450,7 +449,6 @@ public Builder setUsingVirtualThreads(boolean enable) {
450449
* Use Virtual Threads for the Workflow task executors created by this worker. This option is
451450
* only supported for JDK >= 21.
452451
*/
453-
@Experimental
454452
public Builder setUsingVirtualThreadsOnWorkflowWorker(boolean enable) {
455453
this.usingVirtualThreadsOnWorkflowWorker = enable;
456454
return this;
@@ -460,7 +458,6 @@ public Builder setUsingVirtualThreadsOnWorkflowWorker(boolean enable) {
460458
* Use Virtual Threads for the Local Activity task executors created by this worker. This option
461459
* is only supported for JDK >= 21.
462460
*/
463-
@Experimental
464461
public Builder setUsingVirtualThreadsOnLocalActivityWorker(boolean enable) {
465462
this.usingVirtualThreadsOnLocalActivityWorker = enable;
466463
return this;
@@ -470,7 +467,6 @@ public Builder setUsingVirtualThreadsOnLocalActivityWorker(boolean enable) {
470467
* Use Virtual Threads for the Activity task executors created by this worker. This option is
471468
* only supported for JDK >= 21.
472469
*/
473-
@Experimental
474470
public Builder setUsingVirtualThreadsOnActivityWorker(boolean enable) {
475471
this.usingVirtualThreadsOnActivityWorker = enable;
476472
return this;
@@ -480,7 +476,6 @@ public Builder setUsingVirtualThreadsOnActivityWorker(boolean enable) {
480476
* Use Virtual Threads for the Nexus task executors created by this worker. This option is only
481477
* supported for JDK >= 21.
482478
*/
483-
@Experimental
484479
public Builder setUsingVirtualThreadsOnNexusWorker(boolean enable) {
485480
this.usingVirtualThreadsOnNexusWorker = enable;
486481
return this;
@@ -924,22 +919,18 @@ public String getIdentity() {
924919
return identity;
925920
}
926921

927-
@Experimental
928922
public boolean isUsingVirtualThreadsOnWorkflowWorker() {
929923
return usingVirtualThreadsOnActivityWorker;
930924
}
931925

932-
@Experimental
933926
public boolean isUsingVirtualThreadsOnActivityWorker() {
934927
return usingVirtualThreadsOnActivityWorker;
935928
}
936929

937-
@Experimental
938930
public boolean isUsingVirtualThreadsOnLocalActivityWorker() {
939931
return usingVirtualThreadsOnLocalActivityWorker;
940932
}
941933

942-
@Experimental
943934
public boolean isUsingVirtualThreadsOnNexusWorker() {
944935
return usingVirtualThreadsOnNexusWorker;
945936
}

0 commit comments

Comments
 (0)