简体   繁体   English

Akka和节流

[英]Akka and Throttling

I am new to Akka and want to use it for throttling messages. 我是Akka的新手,想用它来限制消息。 I want to use the Akka java libraries I was looking at the following example for version 2.4.2 but unfortunately it is now outdated and not supported http://doc.akka.io/docs/akka/2.4.2/contrib/throttle.html 我想使用Akka Java库,我在下面的示例中查看版本2.4.2,但不幸的是,它现在已经过时了,不受支持http://doc.akka.io/docs/akka/2.4.2/contrib/throttle .html

For the latest version (2.5.3) - I found the following in the migration guide for throttling http://doc.akka.io/docs/akka/current/scala/project/migration-guide-2.4.x-2.5.x.html#timerbasedthrottler 对于最新版本(2.5.3),我在迁移指南中找到了以下限制http://doc.akka.io/docs/akka/current/scala/project/migration-guide-2.4.x-2.5的内容。 x.html#timerbasedthrottler

Would anyone be able to provide a guide example on how to handle throttling in Akka 2.5.3 using the Java framework? 谁能提供有关如何使用Java框架在Akka 2.5.3中处理节流的指导示例?

Thanks 谢谢

The second link you provided already has an example. 您提供的第二个链接已经有一个示例。 The java example is right below the scala one. Java示例就在scala下面。

Also, there's another example here, with a bit more description: http://doc.akka.io/docs/akka/current/java/stream/stream-quickstart.html#time-based-processing 另外,这里还有另一个示例,带有更多描述: http : //doc.akka.io/docs/akka/current/java/stream/stream-quickstart.html#time-based-processing

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM