Class EndpointUtils

java.lang.Object
org.springframework.integration.amqp.support.EndpointUtils

public final class EndpointUtils
extends java.lang.Object
Utility methods for messaging endpoints.
Since:
5.1.3
  • Method Summary

    Modifier and Type Method Description
    static org.springframework.amqp.rabbit.support.ListenerExecutionFailedException errorMessagePayload​(java.util.List<org.springframework.amqp.core.Message> messages, com.rabbitmq.client.Channel channel, boolean isManualAck, java.lang.Exception ex)
    Return an ListenerExecutionFailedException or a ManualAckListenerExecutionFailedException depending on whether isManualAck is false or true.
    static org.springframework.amqp.rabbit.support.ListenerExecutionFailedException errorMessagePayload​(org.springframework.amqp.core.Message message, com.rabbitmq.client.Channel channel, boolean isManualAck, java.lang.Exception ex)
    Return an ListenerExecutionFailedException or a ManualAckListenerExecutionFailedException depending on whether isManualAck is false or true.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • errorMessagePayload

      public static org.springframework.amqp.rabbit.support.ListenerExecutionFailedException errorMessagePayload​(org.springframework.amqp.core.Message message, com.rabbitmq.client.Channel channel, boolean isManualAck, java.lang.Exception ex)
      Return an ListenerExecutionFailedException or a ManualAckListenerExecutionFailedException depending on whether isManualAck is false or true.
      Parameters:
      message - the failed message.
      channel - the channel.
      isManualAck - true if the container uses manual acknowledgment.
      ex - the exception.
      Returns:
      the exception.
    • errorMessagePayload

      public static org.springframework.amqp.rabbit.support.ListenerExecutionFailedException errorMessagePayload​(java.util.List<org.springframework.amqp.core.Message> messages, com.rabbitmq.client.Channel channel, boolean isManualAck, java.lang.Exception ex)
      Return an ListenerExecutionFailedException or a ManualAckListenerExecutionFailedException depending on whether isManualAck is false or true.
      Parameters:
      messages - the failed messages.
      channel - the channel.
      isManualAck - true if the container uses manual acknowledgment.
      ex - the exception.
      Returns:
      the exception.
      Since:
      5.3