Class AutoRecoverConnectionNotCurrentlyOpenException

  • All Implemented Interfaces:
    java.io.Serializable

    public class AutoRecoverConnectionNotCurrentlyOpenException
    extends AmqpException
    An exception thrown if the connection is an auto recover connection that is not currently open and is in the process of being recovered.

    Spring AMQP has had its own recovery logic since day one. The amqp-client library now supports automatic connection and topology recovery; and, since 4.0.0, it is enabled by default. While Spring AMQP is compatible with the client recovery logic, it's generally not necessary to use it; in fact, you may recover faster when relying on Spring AMQP's recovery, especially on the producer side, when a RabbitTemplate has a RetryTemplate.

    If you get this exception, consider disabling the client auto recovery. Spring AMQP disables it by default, unless you configure the underlying rabbit connection factory yourself.

    Since:
    2.0
    Author:
    Gary Russell
    See Also:
    Serialized Form
    • Method Summary

      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait