Skip to content

Commit 06fab14

Browse files
author
Vinayak
committed
Added new event response for custom checkpointing
1 parent c247f11 commit 06fab14

1 file changed

Lines changed: 42 additions & 0 deletions

File tree

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
/*
2+
* Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
5+
* the License. A copy of the License is located at
6+
*
7+
* http://aws.amazon.com/apache2.0
8+
*
9+
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
10+
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
11+
* and limitations under the License.
12+
*/
13+
14+
package com.amazonaws.services.lambda.runtime.events;
15+
16+
import lombok.AllArgsConstructor;
17+
import lombok.Builder;
18+
import lombok.Data;
19+
import lombok.NoArgsConstructor;
20+
21+
import java.io.Serializable;
22+
import java.util.List;
23+
24+
@Data
25+
@NoArgsConstructor
26+
@AllArgsConstructor
27+
@Builder(setterPrefix = "with")
28+
public class StreamsEventResponse implements Serializable {
29+
private static final long serialVersionUID = 3232053116472095907L;
30+
31+
private List<BatchItemFailure> batchItemFailures;
32+
33+
@Data
34+
@NoArgsConstructor
35+
@AllArgsConstructor
36+
@Builder(setterPrefix = "with")
37+
public static class BatchItemFailure implements Serializable {
38+
private static final long serialVersionUID = 1473983466096085881L;
39+
40+
String itemIdentifier;
41+
}
42+
}

0 commit comments

Comments
 (0)