public interface SourceRecordDeque extends Deque<org.apache.kafka.connect.source.SourceRecord>
| Modifier and Type | Method and Description |
|---|---|
List<org.apache.kafka.connect.source.SourceRecord> |
drain()
Deprecated.
|
boolean |
drain(List<org.apache.kafka.connect.source.SourceRecord> records)
Deprecated.
|
boolean |
drain(List<org.apache.kafka.connect.source.SourceRecord> records,
int emptyWaitMs)
Deprecated.
|
List<org.apache.kafka.connect.source.SourceRecord> |
getBatch()
Method will create a new list based on the batch size and drain records to it.
|
List<org.apache.kafka.connect.source.SourceRecord> |
getBatch(int emptyWaitMs)
Method will create a new list based on the batch size and drain records to it.
|
List<org.apache.kafka.connect.source.SourceRecord> |
newList()
Method returns a new list that has an initial capacity of the batch size the deque is configured
for.
|
add, addFirst, addLast, contains, descendingIterator, element, getFirst, getLast, iterator, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, remove, remove, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, sizeaddAll, clear, containsAll, equals, hashCode, isEmpty, parallelStream, removeAll, removeIf, retainAll, spliterator, stream, toArray, toArrayList<org.apache.kafka.connect.source.SourceRecord> newList()
@Deprecated List<org.apache.kafka.connect.source.SourceRecord> drain()
List<org.apache.kafka.connect.source.SourceRecord> getBatch(int emptyWaitMs)
List<org.apache.kafka.connect.source.SourceRecord> getBatch()
@Deprecated boolean drain(List<org.apache.kafka.connect.source.SourceRecord> records)
records - List to append the records to.@Deprecated boolean drain(List<org.apache.kafka.connect.source.SourceRecord> records, int emptyWaitMs)
records - List to append the records to.emptyWaitMs - Time in milliseconds to wait if no records were drained.Copyright © 2016–2025. All rights reserved.