Package org.springframework.cloud.task.batch.listener.support

# 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 Summary

  Constructors
  Constructor
  Description
  `MessagePublisher(org.springframework.cloud.stream.function.StreamBridge streamBridge)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `final void`
  `publish(String bindingName, P payload)`
  `void`
  `publishWithThrowableHeader(String bindingName, P payload, String header)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## 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)