Interface SignalListenerFactory<T,STATE>

Type Parameters:
T - the type of data emitted by the observed source Publisher
STATE - the type of the publisher-level state that will be shared between all SignalListener created by this factory

public interface SignalListenerFactory<T,STATE>
A factory for per-subscription SignalListener, exposing the ability to generate common state at publisher level from the source Publisher.

Examples of such state include:

  • is the publisher a Mono? (unlocking Mono-specific behavior in the SignalListener
  • resolution of NAME and TAGS on the source
  • preparation of a common configuration, like a registry for metrics
Author:
Simon Baslé