简体   繁体   English

如何清空Actor死信队列

[英]How to empty Actor dead letter queue

I have a use case where I'd like to empty my Akka actors' dead letter queues. 我有一个用例,我想清空我的Akka演员的死信队列。

My local actor talks to a remote actor, sending it some data periodically. 我的当地演员与远程演员交谈,定期发送一些数据。 I think these get queued up as when the remote actors becomes available, it gets a flood of events. 我认为这些排队等待远程演员变得可用时,会发生大量事件。

Is it possible to limit the size of this queue? 是否可以限制此队列的大小? Or even better access it, for clearing up the excess items based on some criteria? 或者甚至更好地访问它,根据某些标准清理多余的项目? (at this point I'm even happy just clearing the whole thing up, or disabling this feature) (此时我甚至高兴只清除整个事情,或禁用此功能)

You don't need to clear it up. 你不需要清理它。 Per default it will just push the messages to the event bus: See here . 默认情况下,它只是将消息推送到事件总线: 请参见此处 If there are no subscribers, it will just be thrown away: See here . 如果没有订阅者,它将被丢弃: 见这里

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

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