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

com.catchpoint.trace.lambda.integrations.spring.SpringLambdaHandlerPluginExtension Maven / Gradle / Ivy

The newest version!
package com.catchpoint.trace.lambda.integrations.spring;

import com.catchpoint.trace.lambda.core.handler.LambdaContext;
import com.catchpoint.trace.lambda.core.handler.LambdaHandler;

/**
 * @author serkan
 */
public interface SpringLambdaHandlerPluginExtension {

    void onInit(SpringContextSupplier contextSupplier, LambdaHandler handler);

    default boolean onRequest(Req request, LambdaContext lambdaContext) {
        return true;
    }

    default void onResponse(Res response, LambdaContext lambdaContext) {
    }

    default void onError(Req request, LambdaContext lambdaContext, Throwable error) {
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy