public class InitializationWrapper extends Object
LambdaContainerHandler.
In most cases, this means calling the LambdaContainerHandler.initialize() method. Some implementations may
require additional initialization steps, in this case implementations should provide their own
InitializationWrapper. This library includes an async implementation of this class
AsyncInitializationWrapper for frameworks that are likely to take longer than 10 seconds to start.| Constructor and Description |
|---|
InitializationWrapper() |
| Modifier and Type | Method and Description |
|---|---|
CountDownLatch |
getInitializationLatch()
Asynchronous implementations of the framework should return a latch that the container handler can use to decide
whether it can start handling events.
|
void |
start(LambdaContainerHandler handler)
This is the main entry point.
|
public void start(LambdaContainerHandler handler) throws ContainerInitializationException
getAwsProxyHandler() methods
of the various implementations will call this to initialize the underlying frameworkhandler - The container handler to be initializerContainerInitializationException - If anything goes wrong during container initialization.public CountDownLatch getInitializationLatch()
null.Copyright © 2022. All rights reserved.