首页 > 解决方案 > Akka 2.6.3 中的问题可取消

问题描述

我想将 Akka 经典代码下面的代码更改为 Akka 2.6.3,以便在新项目中使用我的调度程序。

Cancellable tickTaskFrontend = context().system().scheduler().schedule(Duration.create(5, TimeUnit.MINUTES), Duration.create(2, TimeUnit.MINUTES), self(), "CheckFrontendInit", context().dispatcher(), null);

我在 Akka 2.6.3 中没有看到任何可取消的代码。

标签: javaakka

解决方案


推荐阅读