Interface FailureListener


public interface FailureListener
Receives notifications when the JDBC driver's automatic failover attempts for a Continuous Query Notification registration cannot be completed successfully. Implementations can use this callback to log the failure, trigger compensating actions, or schedule a retry based on the registration context provided. Use the connection property OracleConnection.NTF_CONNECTION_RETRY_COUNT to specify the maximum number of times the JDBC driver will attempt to re-establish a lost connection before invoking this listener.
Since:
26ai
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onFailure(SQLException sqlException)
    Invoked when an attempt to register a Continuous Query Notification fails.
  • Method Details

    • onFailure

      void onFailure(SQLException sqlException)
      Invoked when an attempt to register a Continuous Query Notification fails.