public interface LambdaRuntimeApiClient
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 |
reportInvocationError(String requestId,
LambdaError error,
XRayErrorCause xRayErrorCause)
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
|
void reportInitError(LambdaError error) throws IOException
error
- error to reportIOException
InvocationRequest nextInvocation() throws IOException
IOException
void reportInvocationSuccess(String requestId, byte[] response) throws IOException
requestId
- request idresponse
- byte array representing responseIOException
void reportInvocationError(String requestId, LambdaError error) throws IOException
requestId
- request iderror
- error to reportIOException
void reportInvocationError(String requestId, LambdaError error, XRayErrorCause xRayErrorCause) throws IOException
requestId
- request iderror
- error to reportxRayErrorCause
- X-Ray error causeIOException
void restoreNext() throws IOException
IOException
void reportRestoreError(LambdaError error) throws IOException
error
- error to reportIOException
Copyright © 2024. All rights reserved.