Class CloudDurableTestRunner<I,O>
java.lang.Object
software.amazon.lambda.durable.testing.CloudDurableTestRunner<I,O>
-
Method Summary
Modifier and TypeMethodDescriptionstatic <I,O> CloudDurableTestRunner<I, O> static <I,O> CloudDurableTestRunner<I, O> create(String functionArn, Class<I> inputType, Class<O> outputType, software.amazon.awssdk.services.lambda.LambdaClient lambdaClient) static <I,O> CloudDurableTestRunner<I, O> static <I,O> CloudDurableTestRunner<I, O> create(String functionArn, TypeToken<I> inputType, TypeToken<O> outputType, software.amazon.awssdk.services.lambda.LambdaClient lambdaClient) getOperation(String name) startAsync(I input) Start an asynchronous execution and return a handle for incremental polling.withInvocationType(software.amazon.awssdk.services.lambda.model.InvocationType type) withPollInterval(Duration interval) withTimeout(Duration timeout)
-
Method Details
-
create
public static <I,O> CloudDurableTestRunner<I,O> create(String functionArn, Class<I> inputType, Class<O> outputType) -
create
public static <I,O> CloudDurableTestRunner<I,O> create(String functionArn, TypeToken<I> inputType, TypeToken<O> outputType) -
create
public static <I,O> CloudDurableTestRunner<I,O> create(String functionArn, Class<I> inputType, Class<O> outputType, software.amazon.awssdk.services.lambda.LambdaClient lambdaClient) -
create
public static <I,O> CloudDurableTestRunner<I,O> create(String functionArn, TypeToken<I> inputType, TypeToken<O> outputType, software.amazon.awssdk.services.lambda.LambdaClient lambdaClient) -
withPollInterval
-
withTimeout
-
withInvocationType
public CloudDurableTestRunner<I,O> withInvocationType(software.amazon.awssdk.services.lambda.model.InvocationType type) -
run
-
startAsync
Start an asynchronous execution and return a handle for incremental polling. Use this for callback-based tests where you need to interact with the execution while it's running.- Parameters:
input- the input to the function- Returns:
- execution handle for polling and inspection
-
getOperation
-