akka/akka-core

Missing Java API for muting events

オープン

#26,434 opened on 2019/02/22

 (0 件のコメント) (0 件のリアクション) (0 人の担当者)Scala (3,547 件のフォーク)batch import
1 - triagedhelp wantedt:javat:testing

Repository metrics

Stars
 (13,277 個のスター)
PR merge metrics
 (平均マージ 8d 19h) (30d で 10 merged PRs)

説明

Using the Scala API from Java, one can do:

EventFilter defaultDebug = EventFilter.debug(null, null, "", null, Integer.MAX_VALUE);
system.eventStream().publish(new TestEvent.Mute(Arrays.asList(defaultDebug)));

But with the Java testkit EventFilter there is no way to do that since creating a Scala API EventFilter is hidden inside of it.

There should be a way to do the same from Java using akka.testkit.javadsl.EventFilter

コントリビューターガイド