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