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

com.newrelic.api.agent.MethodTracer Maven / Gradle / Ivy

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

package com.newrelic.api.agent;

/**
 * A {@link MethodTracerFactory} can return a MethodTracer to be notified when a method invocation finishes.
 * 
 * @deprecated
 */
public interface MethodTracer {

    /**
     * Called if a method exits successfully.
     * 
     * @param returnValue The return value of the method invocation, or null if the return value is void.
     * @since 2.3.0
     */
    void methodFinished(Object returnValue);

    /**
     * Called if a method exits because of an uncaught exception.
     * 
     * @param exception The uncaught exception thrown during the method invocation.
     * @since 2.3.0
     */
    void methodFinishedWithException(Throwable exception);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy