Class PayloadTypeMessageMonitorWrapper<T extends MessageMonitor<Message<?>>>

java.lang.Object
org.axonframework.micrometer.PayloadTypeMessageMonitorWrapper<T>
Type Parameters:
T - The type of the MessageMonitor created for every payload type.Must implement both MessageMonitor
All Implemented Interfaces:
MessageMonitor<Message<?>>

@Deprecated public class PayloadTypeMessageMonitorWrapper<T extends MessageMonitor<Message<?>>> extends Object implements MessageMonitor<Message<?>>
Deprecated.
As of release 4.4, replaced by using
invalid reference
Tag
s on the monitor implementations. Use invalid input: 'to achieve the same behavior as this implementation.'
A MessageMonitor implementation which creates a new MessageMonitor for every Message payload type ingested by it. The PayloadTypeMessageMonitorWrapper keeps track of all distinct payload types it has created and only creates a new one if there is none present.

The type of MessageMonitor which is created for every payload type is configurable, as long as it implements MessageMonitor}.

Since:
4.1
Author:
Steven van Beelen, Marijn van Zelst
  • Constructor Details

    • PayloadTypeMessageMonitorWrapper

      public PayloadTypeMessageMonitorWrapper(Function<String,T> monitorSupplier)
      Deprecated.
      Create a PayloadTypeMessageMonitorWrapper which builds monitors through a given monitorSupplier for every message payload type encountered.
      Parameters:
      monitorSupplier - A Supplier of MessageMonitors of type T for every encountered payload type
    • PayloadTypeMessageMonitorWrapper

      public PayloadTypeMessageMonitorWrapper(Function<String,T> monitorSupplier, Function<Class<?>,String> monitorNameBuilder)
      Deprecated.
      Create a PayloadTypeMessageMonitorWrapper which builds monitors through a given monitorSupplier for every message payload type encountered and sets the monitor name as specified by the monitorNameBuilder.
      Parameters:
      monitorSupplier - A Function to create a MessageMonitor of type T, with the given String as name, for every encountered payload type
      monitorNameBuilder - A Function where the payload type is the input (of type Class<?>) and output is the desired name for the monitor (of type String)
  • Method Details