Class DefaultConnectionListener

java.lang.Object
net.jodah.lyra.event.DefaultConnectionListener
All Implemented Interfaces:
ConnectionListener

public abstract class DefaultConnectionListener
extends java.lang.Object
implements ConnectionListener
No-op connection listener for sub-classing.
  • Constructor Summary

    Constructors 
    Constructor Description
    DefaultConnectionListener()  
  • Method Summary

    Modifier and Type Method Description
    void onCreate​(com.rabbitmq.client.Connection connection)
    Called when the connection is successfully created.
    void onCreateFailure​(java.lang.Throwable failure)
    Called when connection creation fails.
    void onRecovery​(com.rabbitmq.client.Connection connection)
    Called when the connection is successfully recovered from an unexpected closure, but before its associated exchanges, queues, bindings, channels and consumers are recovered.
    void onRecoveryCompleted​(com.rabbitmq.client.Connection connection)
    Called when recovery of the connection and its associated resources is completed.
    void onRecoveryFailure​(com.rabbitmq.client.Connection connection, java.lang.Throwable failure)
    Called when the connection fails to recover from an unexpected closure.
    void onRecoveryStarted​(com.rabbitmq.client.Connection connection)
    Called when recovery of the connection is started.

    Methods inherited from class java.lang.Object

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