Class DevNullHandler

java.lang.Object
sk.antons.siutils.handler.DevNullHandler
All Implemented Interfaces:
org.springframework.integration.handler.MessageProcessor<org.springframework.messaging.Message<?>>

public class DevNullHandler extends Object implements org.springframework.integration.handler.MessageProcessor<org.springframework.messaging.Message<?>>
Do nothing just terminate flow by returning null message.
Author:
antons
  • Constructor Details

    • DevNullHandler

      public DevNullHandler()
  • Method Details

    • of

      public static DevNullHandler of()
    • processMessage

      public org.springframework.messaging.Message<?> processMessage(org.springframework.messaging.Message<?> message) throws org.springframework.messaging.MessagingException
      Specified by:
      processMessage in interface org.springframework.integration.handler.MessageProcessor<org.springframework.messaging.Message<?>>
      Throws:
      org.springframework.messaging.MessagingException