Class EndpointUtils
java.lang.Object
org.springframework.integration.amqp.support.EndpointUtils
Utility methods for messaging endpoints.
- Since:
 - 5.1.3
 - Author:
 - Gary Russell, Artem Bilan
 
- 
Method Summary
Modifier and TypeMethodDescriptionerrorMessagePayload(List<Message> messages, com.rabbitmq.client.Channel channel, boolean isManualAck, Exception ex) Return anListenerExecutionFailedExceptionor aManualAckListenerExecutionFailedExceptiondepending on whether isManualAck is false or true.errorMessagePayload(Message message, com.rabbitmq.client.Channel channel, boolean isManualAck, Exception ex) Return anListenerExecutionFailedExceptionor aManualAckListenerExecutionFailedExceptiondepending on whether isManualAck is false or true. 
- 
Method Details
- 
errorMessagePayload
public static ListenerExecutionFailedException errorMessagePayload(Message message, com.rabbitmq.client.Channel channel, boolean isManualAck, Exception ex) Return anListenerExecutionFailedExceptionor aManualAckListenerExecutionFailedExceptiondepending 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 ListenerExecutionFailedException errorMessagePayload(List<Message> messages, com.rabbitmq.client.Channel channel, boolean isManualAck, Exception ex) Return anListenerExecutionFailedExceptionor aManualAckListenerExecutionFailedExceptiondepending 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
 
 
 -