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 SummaryModifier 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- 
errorMessagePayloadpublic 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.
 
- 
errorMessagePayloadpublic 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
 
 
-