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
ConstructorDescriptionApplicationLoadBalancerFunction
(io.micronaut.context.ApplicationContext ctx) -
Method Summary
Modifier and TypeMethodDescriptioncom.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
-
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 interfacecom.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 classio.micronaut.function.executor.AbstractExecutor
-