diff --git a/temporal-sdk/src/main/java/io/temporal/worker/WorkerOptions.java b/temporal-sdk/src/main/java/io/temporal/worker/WorkerOptions.java index 83958767d..c02331faf 100644 --- a/temporal-sdk/src/main/java/io/temporal/worker/WorkerOptions.java +++ b/temporal-sdk/src/main/java/io/temporal/worker/WorkerOptions.java @@ -355,12 +355,12 @@ public Builder setBuildId(String buildId) { } /** - * During graceful shutdown, like calling {@link WorkerFactory#shutdown()}, if "sticky worker" - * is enabled, this timeout controls how long to wait for the sticky task queue to drain before - * shutting down the worker. If set the worker will stop making new poll requests on the normal - * task queue, but will continue to poll the sticky task queue until the timeout is reached. - * This value should always be greater than clients rpc long poll timeout, which can be set via - * {@link WorkflowServiceStubsOptions.Builder#setRpcLongPollTimeout(Duration)}. + * During graceful shutdown, as when calling {@link WorkerFactory#shutdown()}, if the workflow + * cache is enabled, this timeout controls how long to wait for the sticky task queue to drain + * before shutting down the worker. If set the worker will stop making new poll requests on the + * normal task queue, but will continue to poll the sticky task queue until the timeout is + * reached. This value should always be greater than clients rpc long poll timeout, which can be + * set via {@link WorkflowServiceStubsOptions.Builder#setRpcLongPollTimeout(Duration)}. * *

Default is not to wait. */