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.14.0
Show newest version
package com.newrelic.api.agent;

/**
 * A {@link MethodTracerFactory} can return a MethodTracer to be notified when a method invocation finishes.
 * 
 * @author sdaubin
 * 
 */
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.
     */
    void methodFinished(Object returnValue);

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy