bytekast.stdlib.aws.lambda.LambdaRequest.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of common-aws Show documentation
Show all versions of common-aws Show documentation
Serverless Stdlib - Common AWS
The newest version!
package bytekast.stdlib.aws.lambda
@Singleton
class LambdaRequest {
private static final InheritableThreadLocal CURRENT = new InheritableThreadLocal()
void set(RequestContext requestContext) {
CURRENT.set(requestContext)
}
void remove() {
CURRENT.remove()
}
RequestContext get() {
CURRENT.get()
}
}