@MinMuleVersion("4.1") public interface Reconnectable
A component which has its own way of reconnecting.

The runtime might still try to perform reconnection on components which does not implement this interface, only that the runtime will decide the logic to apply. For components which do implement this interface, the runtime will call the reconnect(ConnectionException, ReconnectionCallback) method and wait for this component to notify the result through the ReconnectionCallback

Since:
1.0
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    reconnect(org.mule.runtime.api.connection.ConnectionException exception, ReconnectionCallback reconnectionCallback)
    Performs custom reconnection logic.
  • Method Details

    • reconnect

      void reconnect(org.mule.runtime.api.connection.ConnectionException exception, ReconnectionCallback reconnectionCallback)
      Performs custom reconnection logic. The runtime will consider the reconnection finished once a result has been communicated through the reconnectionCallback.

      This method is to implement ONE reconnection attempt. This method is not to have any retry strategies. The runtime will automatically perform retries when and how it applies.

      Parameters:
      exception - the connectivity error that triggered the reconnection
      reconnectionCallback - the callback used to notify the reconnection result