public static ConnectionInformation fromDriver(Driver driver, Connection connection, long timeToGetConnectionNs) {
    final ConnectionInformation connectionInformation = new ConnectionInformation();
    connectionInformation.driver = driver;
    connectionInformation.connection = connection;
    connectionInformation.timeToGetConnectionNs = timeToGetConnectionNs;
    return connectionInformation;
  }
public static ConnectionInformation fromDriver ( Driver driver , Connection connection , long timeToGetConnectionNs ) { final ConnectionInformation connectionInformation = new ConnectionInformation ( ) ; connectionInformation . driver = driver ; connectionInformation . connection = connection ; connectionInformation . timeToGetConnectionNs = timeToGetConnectionNs ; return connectionInformation ; }
Creates a new {@link ConnectionInformation} instance for a {@link Connection} which has been obtained via a
{@link Driver}

@param driver                the {@link Driver} which created the {@link #connection}
@param connection            the {@link #connection} created by the {@link #driver}
@param timeToGetConnectionNs the time it took to obtain the connection in nanoseconds
@return a new {@link ConnectionInformation} instance