chronicle

chronicle vs chronicle-queue package

痞子三分冷 提交于 2019-12-11 07:47:45
问题 I'm just getting started with chronicle queue - however I'm a bit confused on which API to use for reading/writing to the queue. Specifically chronicle-queue-5 vs chronicle-3.5.* I've gone through this link which basically uses chronicle-queue API , but there are others like this which uses chronicle. What is the difference between these 2 below? Chronicle chronicle = ChronicleQueueBuilder.indexed(_location).build(); ExcerptAppender appender = chronicle.createAppender(); appender.startExcerpt

I have created a single queue with daily rolling

前提是你 提交于 2019-12-11 07:20:28
问题 I have created a single queue with daily rolling. On the next day, I can't read the latest appended message. I found that the tailer index doesn't move to the latest cycle automatically after reading all messages in the previous cycle. By the way the java process was shut down at night and restarted on the next day. I use Chronicle Queue V4.52. Thanks. 回答1: This should work, we have tests which show messages are read from one cycle to the next. Would you be able to include a test which

chronicle-bytes shared DirectBytesStores

爷,独闯天下 提交于 2019-12-11 03:15:37
问题 I've created a MappedBytes instance to a file that I'm using as shared cache between different Java processes. I would like to be able to split out additional MappedByte instances (or ByteBuffer or any other instance) from the original that provide direct read/write access to a subset of the underlying file. I've spent today experimenting with different methods but options like subBytes() , rawCopy() and copyTo() all seem to create local copies of the underlying file, rather than accessing

Multimaps in ChronicleMap

拥有回忆 提交于 2019-12-03 13:56:52
问题 There is definitely a disclaimer on ChronicleMap's GitHub about Multimaps in ChronicleMap: Chronicle Map is not... ... No secondary indexes. A multimap. Using a ChronicleMap<K, Collection<V>> as multimap is technically possible, but often leads to problems... Unfortunately, this is one of my use cases and using off-heap storage for that (with ChronicleMap) would certainly be the easiest route to do so. Let me try to explain my problem with pizzas. I have 100,000 different pizzas. Each pizza

Multimaps in ChronicleMap

时光总嘲笑我的痴心妄想 提交于 2019-12-03 03:10:36
There is definitely a disclaimer on ChronicleMap's GitHub about Multimaps in ChronicleMap: Chronicle Map is not... ... No secondary indexes. A multimap. Using a ChronicleMap<K, Collection<V>> as multimap is technically possible, but often leads to problems... Unfortunately, this is one of my use cases and using off-heap storage for that (with ChronicleMap) would certainly be the easiest route to do so. Let me try to explain my problem with pizzas. I have 100,000 different pizzas. Each pizza has an ID and lots of different toppings and crusts. I have three access patterns: Give me the pizza by

Reading messages in Chronicle Queue Tailer (v5.16.11) does not auto-move the index to next roll cycle

为君一笑 提交于 2019-11-28 06:31:44
问题 I use CQ v5.16.11 (with openjdk 11) to save data with daily roll cycles. The process runs non-stop from Sun to Fri so I have 5 cq4 files per week. I ran the process for 1.5 weeks and have 8 files (3 for 1st and 5 for 2nd week). So the files that I have are: 20181003.cq4 cycle=17807, 20181004.cq4 cycle=17808, 20181005.cq4 cycle=17809, 20181007.cq4 cycle=17811, 20181008.cq4 cycle=17812, 20181009.cq4 cycle=17813, 20181010.cq4 cycle=17814, 20181011.cq4 cycle=17815, Note the missing file for