mirror of https://github.com/dapr/docs.git
Fix incorrect doc for java sdk
Java SDK already support creating timer. Signed-off-by: kaibocai <89094811+kaibocai@users.noreply.github.com>
This commit is contained in:
parent
77a9d85175
commit
9ff3dfd63c
|
|
@ -496,9 +496,8 @@ public class MonitorWorkflow extends Workflow {
|
|||
}
|
||||
|
||||
// Put the workflow to sleep until the determined time
|
||||
// Note: ctx.createTimer() method is not supported in the Java SDK yet
|
||||
try {
|
||||
TimeUnit.SECONDS.sleep(nextSleepInterval.getSeconds());
|
||||
ctx.createTimer(nextSleepInterval);
|
||||
} catch (InterruptedException e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue