Sorry for the newbie question in advance. I have a REST endpoint that returns the required data in scrollable manner by chunk per every call I made in a loop. And I want to put each of these chunks into the Chronicle queue as a separate document/message.
This chunk response returned by the endpoint call can be described as follows:
public class ItemCollection {
private Set<Item> items;
}
where
public class Item {
private String id;
private int version;
}
As far as I understood from the topic Chronicle Queue: Usage with less or no lambdas, I can't use lambdas with my ItemCollection
to write a document/message to the Chronicle queue.
So, should I use the approach mentioned there with tailer.readingDocument().wire().read("itemCollection").marshallable(itemCollection)
and make both my Item
and ItemCollection
classes as extends AbstractMarshallable
?
Thank you in advance!
CC: @peter-lawrey
I tried to find similar topics here for the Chronicle queue but no luck unfortunately.