Class ApplicationLoadBalancerFunction

java.lang.Object
io.micronaut.function.executor.AbstractExecutor
io.micronaut.function.executor.FunctionInitializer
io.micronaut.function.aws.proxy.alb.ApplicationLoadBalancerFunction
All Implemented Interfaces:
com.amazonaws.services.lambda.runtime.RequestHandler<com.amazonaws.services.lambda.runtime.events.ApplicationLoadBalancerRequestEvent,com.amazonaws.services.lambda.runtime.events.ApplicationLoadBalancerResponseEvent>, io.micronaut.context.ApplicationContextProvider, Closeable, AutoCloseable

public class ApplicationLoadBalancerFunction extends io.micronaut.function.executor.FunctionInitializer implements com.amazonaws.services.lambda.runtime.RequestHandler<com.amazonaws.services.lambda.runtime.events.ApplicationLoadBalancerRequestEvent,com.amazonaws.services.lambda.runtime.events.ApplicationLoadBalancerResponseEvent>
RequestHandler for input ApplicationLoadBalancerRequestEvent and response ApplicationLoadBalancerResponseEvent.
Since:
4.0.0
Author:
Sergio del Amo
  • Nested Class Summary

    Nested classes/interfaces inherited from class io.micronaut.function.executor.FunctionInitializer

    io.micronaut.function.executor.FunctionInitializer.ParseContext
  • Field Summary

    Fields inherited from class io.micronaut.function.executor.FunctionInitializer

    closeContext

    Fields inherited from class io.micronaut.function.executor.AbstractExecutor

    applicationContext
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    ApplicationLoadBalancerFunction(io.micronaut.context.ApplicationContext ctx)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.amazonaws.services.lambda.runtime.events.ApplicationLoadBalancerResponseEvent
    handleRequest(com.amazonaws.services.lambda.runtime.events.ApplicationLoadBalancerRequestEvent input, com.amazonaws.services.lambda.runtime.Context context)
     
    protected @NonNull io.micronaut.context.ApplicationContextBuilder
     

    Methods inherited from class io.micronaut.function.executor.FunctionInitializer

    close, injectThis, run, startThis

    Methods inherited from class io.micronaut.function.executor.AbstractExecutor

    buildApplicationContext, getApplicationContext, resolveFunction, resolveFunctionName, startEnvironment

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ApplicationLoadBalancerFunction

      public ApplicationLoadBalancerFunction()
    • ApplicationLoadBalancerFunction

      public ApplicationLoadBalancerFunction(io.micronaut.context.ApplicationContext ctx)
  • Method Details

    • handleRequest

      public com.amazonaws.services.lambda.runtime.events.ApplicationLoadBalancerResponseEvent handleRequest(com.amazonaws.services.lambda.runtime.events.ApplicationLoadBalancerRequestEvent input, com.amazonaws.services.lambda.runtime.Context context)
      Specified by:
      handleRequest in interface com.amazonaws.services.lambda.runtime.RequestHandler<com.amazonaws.services.lambda.runtime.events.ApplicationLoadBalancerRequestEvent,com.amazonaws.services.lambda.runtime.events.ApplicationLoadBalancerResponseEvent>
    • newApplicationContextBuilder

      @NonNull protected @NonNull io.micronaut.context.ApplicationContextBuilder newApplicationContextBuilder()
      Overrides:
      newApplicationContextBuilder in class io.micronaut.function.executor.AbstractExecutor