Class MsgBus.LoggingDeadEventHandler

java.lang.Object
uk.ac.diamond.daq.msgbus.MsgBus.LoggingDeadEventHandler
Enclosing class:
MsgBus

public static class MsgBus.LoggingDeadEventHandler extends Object
Useful to discover which msg types are not handled by any subscribers WITHIN THIS PROCESS ONLY (so only really useful for testing). e.g.:
 // assuming import static ...MsgBus.*;
 subscribe(new LoggingDeadEventHandler(logger, Ig.class, Nored.class));
 
  • Constructor Details

    • LoggingDeadEventHandler

      public LoggingDeadEventHandler(org.slf4j.Logger logger, Class<?>... toIgnore)
  • Method Details

    • logWarning

      public void logWarning(com.google.common.eventbus.DeadEvent d)