You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I using akka scheduler meet a problem
when the delay time is too big,all the actor will auto stop
as the same as scheduler().scheduleAtFixedRate(delayTime,()->{})
The text was updated successfully, but these errors were encountered:
The scheduler will throw an IllegalArgumentException if you try to schedule a task more than Int.MaxValue (2147483647) nanos into the future. 22460288495 ms is 22460288495000000ns, so will trigger that error. It should however explain exactly this upper limit.
In general the Akka Scheduler is built for tasks that happen soon, not in hundreds of days, for such scheduling of running tasks you will need to reach for some other scheduling tool.
ctx.getSystem().scheduler().scheduleOnce(Duration.ofMillis(22460288495L), () -> {
System.err.println("*************");
}, ctx.getSystem()));
I using akka scheduler meet a problem
when the delay time is too big,all the actor will auto stop
as the same as scheduler().scheduleAtFixedRate(delayTime,()->{})
The text was updated successfully, but these errors were encountered: