通过路径向 Actor 发送查询参数

Send Query Parameters to Actor through path

我想使用 Actor 的路径作为动态 webhook,例如:

foo://example.com:8042/over/there?name=ferret#nose

是否可以根据路径将参数传递给 actor 引用?

以某种方式查询演员 foo://example.com:8042/over/there?name=ferret#nose,会 return foo://example.com:8042/over/there 具有一些 ?name=ferret#nose 上下文。

如果这不可能,有没有办法达到相同的结果?

很遗憾,这是不可能的。 Akka 使用 URI 格式来描述角色层次结构并定位它们,但除了为角色系统及其角色选择名称外,程序员无法以任何方式自定义它。