java.lang.Object
org.springframework.integration.channel.interceptor.WireTap
All Implemented Interfaces:
Aware, BeanFactoryAware, Lifecycle, VetoCapableInterceptor, ManageableLifecycle, ChannelInterceptor

A ChannelInterceptor that publishes a copy of the intercepted message to a secondary target while still sending the original message to the main channel.
Author:
Mark Fisher, Gary Russell, Artem Bilan
  • Constructor Details

    • WireTap

      public WireTap(MessageChannel channel)
      Create a new wire tap with no MessageSelector.
      Parameters:
      channel - the MessageChannel to which intercepted messages will be sent
    • WireTap

      public WireTap(MessageChannel channel, MessageSelector selector)
      Create a new wire tap with the provided MessageSelector.
      Parameters:
      channel - the channel to which intercepted messages will be sent
      selector - the selector that must accept a message for it to be sent to the intercepting channel
    • WireTap

      public WireTap(String channelName)
      Create a new wire tap based on the MessageChannel name and with no MessageSelector.
      Parameters:
      channelName - the name of the target MessageChannel to which intercepted messages will be sent
      Since:
      4.3
    • WireTap

      public WireTap(String channelName, MessageSelector selector)
      Create a new wire tap with the provided MessageSelector.
      Parameters:
      channelName - the name of the target MessageChannel to which intercepted messages will be sent.
      selector - the selector that must accept a message for it to be sent to the intercepting channel
      Since:
      4.3
  • Method Details