Class LambdaRuntimeClient
- java.lang.Object
-
- com.amazonaws.services.lambda.runtime.api.client.runtimeapi.LambdaRuntimeClient
-
public class LambdaRuntimeClient extends Object
LambdaRuntimeClient is a client of the AWS Lambda Runtime HTTP API for custom runtimes. API definition can be found at https://docs.aws.amazon.com/lambda/latest/dg/runtimes-api.html Copyright (c) 2019 Amazon. All rights reserved.
-
-
Constructor Summary
Constructors Constructor Description LambdaRuntimeClient(String hostnamePort)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidpostInitError(byte[] errorResponse, String errorType)voidpostInvocationError(String requestId, byte[] errorResponse, String errorType)voidpostInvocationError(String requestId, byte[] errorResponse, String errorType, String errorCause)voidpostInvocationResponse(String requestId, byte[] response)InvocationRequestwaitForNextInvocation()
-
-
-
Constructor Detail
-
LambdaRuntimeClient
public LambdaRuntimeClient(String hostnamePort)
-
-
Method Detail
-
waitForNextInvocation
public InvocationRequest waitForNextInvocation()
-
postInvocationResponse
public void postInvocationResponse(String requestId, byte[] response)
-
postInvocationError
public void postInvocationError(String requestId, byte[] errorResponse, String errorType) throws IOException
- Throws:
IOException
-
postInvocationError
public void postInvocationError(String requestId, byte[] errorResponse, String errorType, String errorCause) throws IOException
- Throws:
IOException
-
postInitError
public void postInitError(byte[] errorResponse, String errorType) throws IOException- Throws:
IOException
-
-