Class MessagePublisher<P>

java.lang.Object
org.springframework.cloud.task.batch.listener.support.MessagePublisher<P>
Type Parameters:
P - payload type

public class MessagePublisher<P> extends Object
Utility class that sends batch job listener payloads to the notification channel.
Author:
Glenn Renfro
  • Constructor Details

    • MessagePublisher

      public MessagePublisher(org.springframework.cloud.stream.function.StreamBridge streamBridge)
  • Method Details

    • publish

      public final void publish(String bindingName, P payload)
    • publishWithThrowableHeader

      public void publishWithThrowableHeader(String bindingName, P payload, String header)