Class MapConfig

java.lang.Object
software.amazon.lambda.durable.config.MapConfig

public class MapConfig extends Object
Configuration for map operations.

Defaults to lenient completion (all items run regardless of failures) and unlimited concurrency.

  • Method Details

    • maxConcurrency

      public Integer maxConcurrency()
      Returns:
      max concurrent items, or null for unlimited
    • completionConfig

      public CompletionConfig completionConfig()
      Returns:
      completion criteria, defaults to CompletionConfig.allCompleted()
    • serDes

      public SerDes serDes()
      Returns:
      the custom serializer, or null to use the default
    • nestingType

      public NestingType nestingType()
      Returns:
      nesting type, defaults to NestingType.NESTED
    • itemNamer

      public BiFunction<Object,Integer,String> itemNamer()
      Returns the function used to name map iterations.

      The function receives the item and its zero-based index. A non-null result must satisfy the normal operation name constraints. A null result is preserved as an unnamed iteration.

      Returns:
      the item namer, or null when default iteration naming is used
    • builder

      public static MapConfig.Builder builder()
    • toBuilder

      public MapConfig.Builder toBuilder()