public class LambdaRuntimeApiClientImpl extends Object implements LambdaRuntimeApiClient
| Constructor and Description |
|---|
LambdaRuntimeApiClientImpl(String hostnameAndPort) |
| Modifier and Type | Method and Description |
|---|---|
InvocationRequest |
nextInvocation()
Get next invocation
|
void |
reportInitError(LambdaError error)
Report Init error
|
void |
reportInvocationError(String requestId,
LambdaError error)
Report invocation error
|
void |
reportInvocationSuccess(String requestId,
byte[] response)
Report invocation success
|
void |
reportRestoreError(LambdaError error)
SnapStart endpoint to report errors during afterRestore hooks execution
|
void |
restoreNext()
SnapStart endpoint to report that beforeCheckoint hooks were executed
|
public LambdaRuntimeApiClientImpl(String hostnameAndPort)
public void reportInitError(LambdaError error) throws IOException
LambdaRuntimeApiClientreportInitError in interface LambdaRuntimeApiClienterror - error to reportIOExceptionpublic InvocationRequest nextInvocation()
LambdaRuntimeApiClientnextInvocation in interface LambdaRuntimeApiClientpublic void reportInvocationSuccess(String requestId, byte[] response)
LambdaRuntimeApiClientreportInvocationSuccess in interface LambdaRuntimeApiClientrequestId - request idresponse - byte array representing responsepublic void reportInvocationError(String requestId, LambdaError error) throws IOException
LambdaRuntimeApiClientreportInvocationError in interface LambdaRuntimeApiClientrequestId - request iderror - error to reportIOExceptionpublic void restoreNext()
throws IOException
LambdaRuntimeApiClientrestoreNext in interface LambdaRuntimeApiClientIOExceptionpublic void reportRestoreError(LambdaError error) throws IOException
LambdaRuntimeApiClientreportRestoreError in interface LambdaRuntimeApiClienterror - error to reportIOExceptionCopyright © 2025. All rights reserved.