All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.libgraviton.workerbase.mq.QueueExceptionHandler Maven / Gradle / Ivy

package com.github.libgraviton.workerbase.mq;

import com.rabbitmq.client.Connection;
import com.rabbitmq.client.impl.DefaultExceptionHandler;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * 

QueueExceptionHandler

* * @author List of contributors {@literal } * @see http://swisscom.ch * @version $Id: $Id */ public class QueueExceptionHandler extends DefaultExceptionHandler { private static final Logger LOG = LoggerFactory.getLogger(QueueExceptionHandler.class); @Override public void handleConnectionRecoveryException(Connection conn, Throwable exception) { // Only log output. WorkerQueueManager already configures setAutomaticRecoveryEnabled on the connection factory. LOG.warn("Message queue connection recovery not yet successful. Retry again..."); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy