akka/akka-core

Missing Java API for muting events

Aberta

#26.434 aberto em 22 de fev. de 2019

 (0 comentário) (0 reação) (0 responsável)Scala (3.547 forks)batch import
1 - triagedhelp wantedt:javat:testing

Métricas do repositório

Stars
 (13.277 estrelas)
Métricas de merge de PR
 (Mesclagem média 8d 19h) (10 fundiu PRs em 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

Guia do colaborador