All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.newrelic.agent.sql.SlowQueryAggregator Maven / Gradle / Ivy

There is a newer version: 8.14.0
Show newest version
/*
 *
 *  * Copyright 2020 New Relic Corporation. All rights reserved.
 *  * SPDX-License-Identifier: Apache-2.0
 *
 */

package com.newrelic.agent.sql;

import java.util.List;

import com.newrelic.agent.TransactionData;

/**
 * This class is responsible for aggregating similar slow queries across transactions
 */
public interface SlowQueryAggregator {

    /**
     * Returns and resets a list of slow queries since the last time this method was called.
     * 
     * @return a list of slow queries since the last time this method was called
     */
    List getAndClearSlowQueries();

    /**
     * Add any slow queries that occurred during the provided transaction.
     * 
     * @param td the transaction to check for slow query traces
     */
    void addSlowQueriesFromTransaction(TransactionData td);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy