We want to use the same lambda application lifecycle for all lambda implementations. Currently we support @main only for the LambdaHandler protocol. This PR brings the @main functionality to the lower level protocols.
Modifications:
Add a factory method requirement to the ByteBufferLambdaHandler protocol
Remove the factory callback (HandlerFactory) from the LambdaRuntime and Lambda
Make the LambdaRuntime generic over the LambdaHandler type
Adjust tests
Write better docu
Result:
The application lifecycle is the same for all protocol levels.
As previously discussed...
We want to use the same lambda application lifecycle for all lambda implementations. Currently we support
@main
only for theLambdaHandler
protocol. This PR brings the@main
functionality to the lower level protocols.Modifications:
ByteBufferLambdaHandler
protocolHandlerFactory
) from theLambdaRuntime
andLambda
LambdaRuntime
generic over theLambdaHandler
typeResult: