AppDynamics switched from Semantic Versioning to Calendar Versioning starting in February 2020 for some agents and March 2020 for the entire product suite.

    Skip to end of metadata
    Go to start of metadata

    This topic discusses Lambda expressions, a Java language feature introduced in Java 8 that enables a functional style of programming in Java.

    About Java Lambda

    Here's a short example:

    LambdaMethodInterface i = (acc, x) -> acc + x;

    In the JVM, this creates an anonymous instance of the associated FunctionalInterface, as shown below:

    package jdk8;
    interface LambdaMethodInterface
        int sum(int acc, int x);

    Instrumenting Java Lambda

    To instrument lambda instances, create a POJO business transaction match rule for the LambdaMethodInterface, for example:

    This sample rule matches classes that implement the interface name jdk8.LambdaMethodInterface

    • No labels