SessionFailureListener (ActiveMQ Artemis Web 1.1.0.wildfly-010 API)
Date: 2015-12-18

org.apache.activemq.artemis.api.core.client

## Interface SessionFailureListener

- All Superinterfaces:
    org.apache.activemq.artemis.core.remoting.FailureListener

      public interface SessionFailureListener
      extends org.apache.activemq.artemis.core.remoting.FailureListener

  A SessionFailureListener notifies the client when a failure occurred on the session.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `beforeReconnect(ActiveMQException exception)` Notifies that a connection has failed due to the specified exception.

    - ### Methods inherited from interface org.apache.activemq.artemis.core.remoting.FailureListener

      `connectionFailed, connectionFailed`

- - ### Method Detail

    - #### beforeReconnect

          void beforeReconnect(ActiveMQException exception)

      Notifies that a connection has failed due to the specified exception.
      This method is called before the session attempts to reconnect/failover.
      Parameters:
        `exception` - exception which has caused the connection to fail

Copyright © 2015. All rights reserved.