We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 768dc71 commit 71a4087Copy full SHA for 71a4087
logstash-core/src/main/java/org/logstash/ackedqueue/DeserializedBatch.java
@@ -0,0 +1,19 @@
1
+package org.logstash.ackedqueue;
2
+
3
+import java.util.List;
4
5
+public class DeserializedBatch {
6
+ private final List<byte[]> elements;
7
+ private final long firstSeqNum;
8
+ private final Queue queue;
9
10
+ public DeserializedBatch(List<byte[]> elements, long firstSeqNum, Queue queue) {
11
+ this.elements = elements;
12
+ this.firstSeqNum = firstSeqNum;
13
+ this.queue = queue;
14
+ }
15
16
+ public Batch deserialize() {
17
+ return new Batch(elements, firstSeqNum, queue);
18
19
+}
0 commit comments