akka/akka-core

Missing Java API for muting events

Open

#26,434 opened on Feb 22, 2019

View on GitHub
 (0 comments) (0 reactions) (0 assignees)Scala (3,547 forks)batch import
1 - triagedhelp wantedt:javat:testing

Repository metrics

Stars
 (13,277 stars)
PR merge metrics
 (Avg merge 8d 19h) (10 merged PRs in 30d)

Description

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

Contributor guide