spring-cloud-stream-binder-rabbit/src/main/java/org/springframework/cloud/stream/binder/rabbit/RabbitMessageChannelBinder.java
private boolean shouldRepublish(Throwable throwable) {
					Throwable cause = throwable;
					while (cause != null
							&& !(cause instanceof AmqpRejectAndDontRequeueException)
							&& !(cause instanceof ImmediateAcknowledgeAmqpException)) {
						cause = cause.getCause();
					}
					return !(cause instanceof ImmediateAcknowledgeAmqpException);
				}
/**
				 * Traverse the cause tree, stopping at AmqpRejectAndDontRequeueException
				 * or ImmediateAcknowledgeAmqpException.
				 * @param throwable the throwable.
				 * @return true if neither found or AmqpRejectAndDontRequeueException is
				 * found first.
				 */
Traverse the cause tree, stopping at AmqpRejectAndDontRequeueException
or ImmediateAcknowledgeAmqpException.
@param throwable the throwable.
@return true if neither found or AmqpRejectAndDontRequeueException is
found first.
Traverse the cause tree stopping at AmqpRejectAndDontRequeueException or ImmediateAcknowledgeAmqpException . @param throwable the throwable . @return true if neither found or AmqpRejectAndDontRequeueException is found first .
private boolean shouldRepublish(Throwable throwable) {
					Throwable cause = throwable;
					while (cause != null
							&& !(cause instanceof AmqpRejectAndDontRequeueException)
							&& !(cause instanceof ImmediateAcknowledgeAmqpException)) {
						cause = cause.getCause();
					}
					return !(cause instanceof ImmediateAcknowledgeAmqpException);
				}
private boolean shouldRepublish ( Throwable throwable ) { Throwable cause = throwable ; while ( cause != null && ! ( cause instanceof AmqpRejectAndDontRequeueException ) && ! ( cause instanceof ImmediateAcknowledgeAmqpException ) ) { cause = cause . getCause ( ) ; } return ! ( cause instanceof ImmediateAcknowledgeAmqpException ) ; }
Traverse the cause tree, stopping at AmqpRejectAndDontRequeueException
 or ImmediateAcknowledgeAmqpException.
Traverse the cause tree stopping at AmqpRejectAndDontRequeueException or ImmediateAcknowledgeAmqpException .