Tag: akka

使用Akka java API时Kotlintypes推理编译错误

我想在Kotlin程序中使用Akka java API。 当我想为akka设置onComplete回调Future ,我遇到了Kotlin编译器错误,而java等价的工作很好: val future: Future = ask(sender, MyActor.Greeting(“Saeed”), 5000) future.onComplete(object : OnComplete() { override fun onComplete(failure: Throwable?, success: Object?) { throw UnsupportedOperationException() } }, context.dispatcher()) java代码: Future future = ask(sender(), new MyActor.Greeting(“Saeed”), 5000); future.onComplete(new OnComplete() { public void onComplete(Throwable failure, Object result) { if (failure != null) { System.out.println(“We got a failure, […]

是否有可能在Android项目中运行最新版本的Akka Framework(2.5.2)?

我正在开发一个Android项目,并想知道是否有可能使用Akka框架v.2.5.2。 这个框架需要Java 8运行,我知道Android不支持Java 8.是否有一个配置,使其工作? 也许使用Kotlin?