Interface DriverDiscoveryListener<E extends DriverConnectionInfo>

Type Parameters:
E - the type of notifications received by this listener.

public interface DriverDiscoveryListener<E extends DriverConnectionInfo>
Listener interface to receive notifications of new discovered driver connection pools.
Author:
Laurent Cohen
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Called when a new driver connection pool is discovered.
  • Method Details

    • onNewConnection

      boolean onNewConnection(E info)
      Called when a new driver connection pool is discovered.
      Parameters:
      info - encapsulates the connection information about a remote driver.
      Returns:
      true if the new connection pool was accepted, false if an identical one was already submitted or this listener is no longer accepting notifications.